class ReadState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ReadState.State |
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
buffer |
static java.nio.ByteBuffer |
NO_ACTION |
private ReadState.State |
state |
Constructor and Description |
---|
ReadState() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
eof() |
(package private) boolean |
isReading() |
(package private) boolean |
isSuspended() |
(package private) java.nio.ByteBuffer |
resume() |
(package private) boolean |
suspend()
Suspends reads from the connection if
suspending() was called. |
(package private) boolean |
suspending()
Requests that reads from the connection be suspended when
suspend() is called. |
boolean |
suspendParse(java.nio.ByteBuffer buffer) |
java.lang.String |
toString() |
private java.lang.String |
toString(ReadState.State state) |
public static final java.nio.ByteBuffer NO_ACTION
private ReadState.State state
private java.nio.ByteBuffer buffer
boolean isReading()
boolean isSuspended()
boolean suspending()
suspend()
is called.public boolean suspendParse(java.nio.ByteBuffer buffer)
boolean suspend()
suspending()
was called.java.nio.ByteBuffer resume()
BufferUtil.EMPTY_BUFFER
no action should be taken.void eof()
private java.lang.String toString(ReadState.State state)
public java.lang.String toString()
toString
in class java.lang.Object