Package org.glassfish.grizzly.streams
Class StreamInput
java.lang.Object
org.glassfish.grizzly.streams.StreamInput
- All Implemented Interfaces:
Input
- Author:
- Alexey Stashok
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Return the Input'sBuffer
.boolean
notifyCondition
(Condition condition, CompletionHandler<Integer> completionHandler) byte
read()
int
size()
void
skip
(int length) Takes the Input'sBuffer
.
-
Constructor Details
-
StreamInput
-
-
Method Details
-
notifyCondition
public GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) - Specified by:
notifyCondition
in interfaceInput
-
read
- Specified by:
read
in interfaceInput
- Throws:
IOException
-
skip
public void skip(int length) -
isBuffered
public boolean isBuffered()- Specified by:
isBuffered
in interfaceInput
-
getBuffer
Description copied from interface:Input
Return the Input'sBuffer
. -
takeBuffer
Description copied from interface:Input
- Specified by:
takeBuffer
in interfaceInput
- Returns:
- the Input's
Buffer
. This Input should never try to access thisBuffer
.
-
size
public int size() -
close
- Specified by:
close
in interfaceInput
- Throws:
IOException
-