public class PartialLineBuffer
extends java.lang.Object
| Constructor and Description |
|---|
PartialLineBuffer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(char[] data,
int off,
int size)
Add character data to the buffer
|
void |
clearPartial()
Clear the partial fragment string
|
java.util.List<java.lang.String> |
getLines() |
java.lang.String |
getPartialLine() |
java.lang.String |
getPartialLine(boolean mark) |
int |
read(java.io.Reader reader)
Read some chars from a reader, and return the number of characters read
|
java.lang.String |
readLine() |
void |
unmarkPartial()
Unmark any partial line so it can be read again
|
public int read(java.io.Reader reader)
throws java.io.IOException
reader - input readerjava.io.IOException - if thrown by underlying read actionpublic void addData(char[] data,
int off,
int size)
data - dataoff - offsetsize - lengthpublic java.lang.String getPartialLine()
public void unmarkPartial()
public void clearPartial()
public java.lang.String getPartialLine(boolean mark)
mark - true to mark itpublic java.lang.String readLine()
public java.util.List<java.lang.String> getLines()