Package org.glassfish.grizzly.streams
Class StreamInput
- java.lang.Object
-
- org.glassfish.grizzly.streams.StreamInput
-
-
Constructor Summary
Constructors Constructor Description StreamInput(StreamReader streamReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()BuffergetBuffer()Return the Input'sBuffer.booleanisBuffered()GrizzlyFuture<Integer>notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)byteread()intsize()voidskip(int length)BuffertakeBuffer()Takes the Input'sBuffer.
-
-
-
Constructor Detail
-
StreamInput
public StreamInput(StreamReader streamReader)
-
-
Method Detail
-
notifyCondition
public GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)
- Specified by:
notifyConditionin interfaceInput
-
read
public byte read() throws IOException- Specified by:
readin interfaceInput- Throws:
IOException
-
isBuffered
public boolean isBuffered()
- Specified by:
isBufferedin interfaceInput
-
getBuffer
public Buffer getBuffer()
Description copied from interface:InputReturn the Input'sBuffer.
-
takeBuffer
public Buffer takeBuffer()
Description copied from interface:Input- Specified by:
takeBufferin interfaceInput- Returns:
- the Input's
Buffer. This Input should never try to access thisBuffer.
-
close
public void close() throws IOException- Specified by:
closein interfaceInput- Throws:
IOException
-
-