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 void
close()
Buffer
getBuffer()
Return the Input'sBuffer
.boolean
isBuffered()
GrizzlyFuture<Integer>
notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler)
byte
read()
int
size()
void
skip(int length)
Buffer
takeBuffer()
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:
notifyCondition
in interfaceInput
-
read
public byte read() throws IOException
- Specified by:
read
in interfaceInput
- Throws:
IOException
-
isBuffered
public boolean isBuffered()
- Specified by:
isBuffered
in interfaceInput
-
getBuffer
public Buffer getBuffer()
Description copied from interface:Input
Return the Input'sBuffer
.
-
takeBuffer
public Buffer takeBuffer()
Description copied from interface:Input
- Specified by:
takeBuffer
in interfaceInput
- Returns:
- the Input's
Buffer
. This Input should never try to access thisBuffer
.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceInput
- Throws:
IOException
-
-