private class TextLineDecoder.Context
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private IoBuffer |
buf
The temporary buffer containing the decoded line
|
private java.nio.charset.CharsetDecoder |
decoder
The decoder
|
private int |
matchCount
The number of lines found so far
|
private int |
overflowPosition
A counter to signal that the line is too long
|
| Modifier | Constructor and Description |
|---|---|
private |
Context(int bufferLength)
Create a new Context object with a default buffer
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(IoBuffer in) |
private void |
discard(IoBuffer in) |
IoBuffer |
getBuffer() |
java.nio.charset.CharsetDecoder |
getDecoder() |
int |
getMatchCount() |
int |
getOverflowPosition() |
void |
reset() |
void |
setMatchCount(int matchCount) |
private final java.nio.charset.CharsetDecoder decoder
private final IoBuffer buf
private int matchCount
private int overflowPosition
private Context(int bufferLength)
public java.nio.charset.CharsetDecoder getDecoder()
public IoBuffer getBuffer()
public int getOverflowPosition()
public int getMatchCount()
public void setMatchCount(int matchCount)
public void reset()
public void append(IoBuffer in)
private void discard(IoBuffer in)