public class FileBytesCharIterator extends Object implements IterableCharSequence
CharacterIterator and CharSequence
since all indices are byte offsets into the underlying file, not character indices.
All methods that don't operate on indices should work as expected.
Please note that this means that this type will only work with BreakIterator types
that don't mess with the index themselves.IterableCharSequence.IterableStringCharSequence, IterableCharSequence.OffsetTypeDONE| Constructor and Description |
|---|
FileBytesCharIterator(FileBytesCharIterator other) |
FileBytesCharIterator(Path path) |
FileBytesCharIterator(Path path,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int offset)
Get character at the given byte offset.
|
Object |
clone() |
char |
current() |
char |
first() |
int |
getBeginIndex() |
Charset |
getCharset() |
int |
getEndIndex() |
String |
getIdentifier() |
int |
getIndex() |
IterableCharSequence.OffsetType |
getOffsetType() |
char |
last() |
int |
length() |
char |
next() |
char |
previous() |
char |
setIndex(int offset) |
CharSequence |
subSequence(int start,
int end) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromStringchars, codePoints, toStringpublic FileBytesCharIterator(Path path) throws IOException
IOExceptionpublic FileBytesCharIterator(Path path, Charset charset) throws IOException
IOExceptionpublic FileBytesCharIterator(FileBytesCharIterator other) throws IOException
IOExceptionpublic int length()
length in interface CharSequencepublic char charAt(int offset)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic char first()
first in interface CharacterIteratorpublic char last()
last in interface CharacterIteratorpublic char current()
current in interface CharacterIteratorpublic char next()
next in interface CharacterIteratorpublic char previous()
previous in interface CharacterIteratorpublic char setIndex(int offset)
setIndex in interface CharacterIteratorpublic int getBeginIndex()
getBeginIndex in interface CharacterIteratorpublic int getEndIndex()
getEndIndex in interface CharacterIteratorpublic int getIndex()
getIndex in interface CharacterIteratorpublic Object clone()
clone in interface CharacterIteratorclone in class Objectpublic String getIdentifier()
getIdentifier in interface IterableCharSequencepublic IterableCharSequence.OffsetType getOffsetType()
getOffsetType in interface IterableCharSequencepublic Charset getCharset()
getCharset in interface IterableCharSequenceCopyright © 2019. All rights reserved.