public abstract class BufferedInput extends java.lang.Object implements Input
| Modifier and Type | Field and Description |
|---|---|
protected CompletionHandler<java.lang.Integer> |
completionHandler |
protected CompositeBuffer |
compositeBuffer |
protected Condition |
condition |
protected FutureImpl<java.lang.Integer> |
future |
protected boolean |
isCompletionHandlerRegistered |
protected java.util.concurrent.locks.ReentrantReadWriteLock |
lock |
protected java.lang.Exception |
registrationStackTrace |
| Constructor and Description |
|---|
BufferedInput() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Buffer buffer) |
void |
close() |
Buffer |
getBuffer()
Return the Input's
Buffer. |
boolean |
isBuffered() |
protected void |
notifyCompleted(CompletionHandler<java.lang.Integer> completionHandler) |
GrizzlyFuture<java.lang.Integer> |
notifyCondition(Condition condition,
CompletionHandler<java.lang.Integer> completionHandler) |
protected void |
notifyFailure(CompletionHandler<java.lang.Integer> completionHandler,
java.lang.Throwable failure) |
protected abstract void |
onCloseInputSource() |
protected abstract void |
onOpenInputSource() |
boolean |
prepend(Buffer buffer) |
byte |
read() |
int |
size() |
void |
skip(int length) |
Buffer |
takeBuffer()
Takes the Input's
Buffer. |
protected final CompositeBuffer compositeBuffer
protected final java.util.concurrent.locks.ReentrantReadWriteLock lock
protected boolean isCompletionHandlerRegistered
protected java.lang.Exception registrationStackTrace
protected Condition condition
protected CompletionHandler<java.lang.Integer> completionHandler
protected FutureImpl<java.lang.Integer> future
protected abstract void onOpenInputSource()
throws java.io.IOException
java.io.IOExceptionprotected abstract void onCloseInputSource()
throws java.io.IOException
java.io.IOExceptionpublic boolean append(Buffer buffer)
public boolean prepend(Buffer buffer)
public byte read()
throws java.io.IOException
public final boolean isBuffered()
isBuffered in interface Inputpublic Buffer getBuffer()
InputBuffer.public Buffer takeBuffer()
InputtakeBuffer in interface InputBuffer. This Input should
never try to access this Buffer.public GrizzlyFuture<java.lang.Integer> notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
notifyCondition in interface Inputprotected void notifyCompleted(CompletionHandler<java.lang.Integer> completionHandler)
protected void notifyFailure(CompletionHandler<java.lang.Integer> completionHandler, java.lang.Throwable failure)
Copyright © 2018 Oracle Corporation. All Rights Reserved.