public class CharLineBuffer extends Splitable
Modifier and Type | Class and Description |
---|---|
class |
CharLineBuffer.Cursor |
Constructor and Description |
---|
CharLineBuffer() |
CharLineBuffer(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
void |
close() |
protected java.util.regex.Matcher |
getCachedMatcher(java.lang.String regex) |
int |
getLineNumber() |
boolean |
isEndOfStream() |
int |
length() |
boolean |
next()
Reads characters from the underlying reader until the end of the stream
or a linebreak occurs.
|
boolean |
nextNonEmptyLine() |
void |
recycle() |
protected void |
recycleMatcher(java.util.regex.Matcher matcher) |
void |
reset() |
void |
startReading(java.io.Reader reader) |
CharLineBuffer.Cursor |
subSequence(int begin) |
CharLineBuffer.Cursor |
subSequence(int begin,
int end) |
java.lang.String |
substring(int begin) |
java.lang.String |
substring(int begin,
int end) |
void |
trim() |
closeSplits, getEnd, getSplitCount, getSplitCursor, getStart, resetSplits, split, split, split, split
compareTo, contains, endsWith, equals, hashCode, indexOf, indexOf, indexOf, indexOf, isEmpty, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, matches, regionMatches, regionMatches, resetHash, startsWith, startsWith, toCharArray, toString
public CharLineBuffer()
public CharLineBuffer(int bufferSize)
public void startReading(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public int getLineNumber()
public boolean isEndOfStream()
public void reset() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
java.io.IOException
public boolean nextNonEmptyLine() throws java.io.IOException
java.io.IOException
public void trim()
public int length()
CharSequence.length()
public char charAt(int index)
CharSequence.charAt(int)
public CharLineBuffer.Cursor subSequence(int begin, int end)
subSequence
in interface java.lang.CharSequence
subSequence
in class Splitable
Splitable.subSequence(int, int)
public CharLineBuffer.Cursor subSequence(int begin)
public java.lang.String substring(int begin, int end)
public java.lang.String substring(int begin)
public void recycle()
recycle
in class Splitable
Splitable.recycle()
protected java.util.regex.Matcher getCachedMatcher(java.lang.String regex)
getCachedMatcher
in class Splitable
Splitable.getCachedMatcher(java.lang.String)
protected void recycleMatcher(java.util.regex.Matcher matcher)
recycleMatcher
in class Splitable
Splitable.recycleMatcher(java.util.regex.Matcher)