Package org.glassfish.grizzly.streams
Interface Input
- All Known Implementing Classes:
BufferedInput
,DefaultStreamReader.Input
,StreamInput
,TransformerInput
public interface Input
- Author:
- Alexey Stashok
-
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
.
-
Method Details
-
notifyCondition
GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) -
read
- Throws:
IOException
-
skip
void skip(int length) -
isBuffered
boolean isBuffered() -
getBuffer
Buffer getBuffer()Return the Input'sBuffer
.- Returns:
- the Input's
Buffer
.
-
takeBuffer
Buffer takeBuffer() -
size
int size() -
close
- Throws:
IOException
-