| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Condition | |
| private final Queue | |
| private final AutoLock | |
| private ByteBuffer | |
| private final int | |
| private final Runnable | |
| private static final ByteBuffer | |
| private static final Logger | |
| private static final int | |
| private static final SocketAddress |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ByteArrayEndPoint(String
the input string (converted to bytes using default encoding charset) input, int the output size outputSize)
|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public int | fill(ByteBuffer
The buffer to fill. The position and limit are modified during the fill. After the
operation, the position is unchanged and the limit is increased to reflect the new data filled. buffer)Overrides default org. Fill the passed buffer with data from this endpoint. |
| public boolean | flush(ByteBuffer...
the buffers to flush buffers)Overrides default org. Flush data from the passed header/buffer to this endpoint. |
| public SocketAddress | getLocalSocketAddress()
Overrides default org. Implements abstract org.
|
| public ByteBuffer | |
| public String | |
| public String | |
| public SocketAddress | getRemoteSocketAddress()
Overrides default org. Implements abstract org.
|
| public Object | |
| public boolean | |
| private static boolean | Returns: Whether the reference buffer is equal to that of EOFthe input ByteBuffer to be compared to EOF buffer)Compares a ByteBuffer Object to EOF by Reference |
| public boolean | |
| protected void | |
| private static SocketAddress | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public ByteBuffer | |
| public String | |
| public String | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public ByteBuffer | Returns: The buffer of outputTime to wait time, TimeUnit Units for time to wait unit)Wait for some output |
| _growOutput | back to summary |
|---|---|
| private boolean _growOutput | |
| _hasOutput | back to summary |
|---|---|
| private final Condition _hasOutput | |
| _inQ | back to summary |
|---|---|
| private final Queue<ByteBuffer> _inQ | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _out | back to summary |
|---|---|
| private ByteBuffer _out | |
| _outputSize | back to summary |
|---|---|
| private final int _outputSize | |
| _runFillable | back to summary |
|---|---|
| private final Runnable _runFillable | |
| EOF | back to summary |
|---|---|
| private static final ByteBuffer EOF | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_BUFFER_SIZE | back to summary |
|---|---|
| private static final int MAX_BUFFER_SIZE | |
| NO_SOCKET_ADDRESS | back to summary |
|---|---|
| private static final SocketAddress NO_SOCKET_ADDRESS | |
| ByteArrayEndPoint | back to summary |
|---|---|
| public ByteArrayEndPoint() | |
| ByteArrayEndPoint | back to summary |
|---|---|
public ByteArrayEndPoint(byte[] input, int outputSize)
| |
| ByteArrayEndPoint | back to summary |
|---|---|
public ByteArrayEndPoint(String input, int outputSize)
| |
| ByteArrayEndPoint | back to summary |
|---|---|
| public ByteArrayEndPoint(Scheduler scheduler, long idleTimeoutMs) | |
| ByteArrayEndPoint | back to summary |
|---|---|
| public ByteArrayEndPoint(Scheduler timer, long idleTimeoutMs, byte[] input, int outputSize) | |
| ByteArrayEndPoint | back to summary |
|---|---|
| public ByteArrayEndPoint(Scheduler timer, long idleTimeoutMs, String input, int outputSize) | |
| ByteArrayEndPoint | back to summary |
|---|---|
| public ByteArrayEndPoint(Scheduler timer, long idleTimeoutMs, ByteBuffer input, ByteBuffer output) | |
| addInput | back to summary |
|---|---|
public void addInput(ByteBuffer in)
| |
| addInput | back to summary |
|---|---|
| public void addInput(String s) | |
| addInput | back to summary |
|---|---|
| public void addInput(String s, Charset charset) | |
| addInputAndExecute | back to summary |
|---|---|
| public void addInputAndExecute(String s) | |
| addInputAndExecute | back to summary |
|---|---|
| public void addInputAndExecute(ByteBuffer in) | |
| addInputEOF | back to summary |
|---|---|
| public void addInputEOF() | |
| doClose | back to summary |
|---|---|
| public void doClose() Overrides org.
| |
| doShutdownOutput | back to summary |
|---|---|
| public void doShutdownOutput() Overrides org.
| |
| execute | back to summary |
|---|---|
| protected void execute(Runnable task) | |
| fill | back to summary |
|---|---|
| public int fill(ByteBuffer buffer) throws IOException Overrides default org. Doc from org. Fill the passed buffer with data from this endpoint. The bytes are appended to any data already in the buffer by writing from the buffers limit up to it's capacity. The limit is updated to include the filled bytes.
| |
| flush | back to summary |
|---|---|
| public boolean flush(ByteBuffer... buffers) throws IOException Overrides default org. Doc from org. Flush data from the passed header/buffer to this endpoint. As many bytes as can be consumed are taken from the header/buffer position up until the buffer limit. The header/buffers position is updated to indicate how many bytes have been consumed.
| |
| getLocalSocketAddress | back to summary |
|---|---|
| public SocketAddress getLocalSocketAddress() Overrides default org. Implements abstract org.
| |
| getOutput | back to summary |
|---|---|
public ByteBuffer getOutput()
| |
| getOutputString | back to summary |
|---|---|
public String getOutputString()
| |
| getOutputString | back to summary |
|---|---|
| public String getOutputString(Charset charset) | |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Overrides default org. Implements abstract org.
| |
| getTransport | back to summary |
|---|---|
| public Object getTransport() Implements org.
| |
| hasMore | back to summary |
|---|---|
public boolean hasMore()
| |
| isEOF | back to summary |
|---|---|
| private static boolean isEOF(ByteBuffer buffer) Compares a ByteBuffer Object to EOF by Reference
| |
| isGrowOutput | back to summary |
|---|---|
public boolean isGrowOutput()
| |
| needsFillInterest | back to summary |
|---|---|
| protected void needsFillInterest() throws IOException Implements abstract org.
| |
| noSocketAddress | back to summary |
|---|---|
| private static SocketAddress noSocketAddress() | |
| onIncompleteFlush | back to summary |
|---|---|
| protected void onIncompleteFlush() Implements abstract org.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org.
| |
| setGrowOutput | back to summary |
|---|---|
| public void setGrowOutput(boolean growOutput) Set the growOutput to set.
| |
| setOutput | back to summary |
|---|---|
public void setOutput(ByteBuffer out)
| |
| takeOutput | back to summary |
|---|---|
public ByteBuffer takeOutput()
| |
| takeOutputString | back to summary |
|---|---|
public String takeOutputString()
| |
| takeOutputString | back to summary |
|---|---|
| public String takeOutputString(Charset charset) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| waitForOutput | back to summary |
|---|---|
| public ByteBuffer waitForOutput(long time, TimeUnit unit) throws InterruptedException Wait for some output
| |