org.glassfish.grizzly.streams
Class StreamInput

java.lang.Object
  extended by org.glassfish.grizzly.streams.StreamInput
All Implemented Interfaces:
Input

public class StreamInput
extends java.lang.Object
implements Input

Author:
Alexey Stashok

Constructor Summary
StreamInput(StreamReader streamReader)
           
 
Method Summary
 void close()
           
 Buffer getBuffer()
          Return the Input's Buffer.
 boolean isBuffered()
           
 GrizzlyFuture<java.lang.Integer> notifyCondition(Condition condition, CompletionHandler<java.lang.Integer> completionHandler)
           
 byte read()
           
 int size()
           
 void skip(int length)
           
 Buffer takeBuffer()
          Takes the Input's Buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamInput

public StreamInput(StreamReader streamReader)
Method Detail

notifyCondition

public GrizzlyFuture<java.lang.Integer> notifyCondition(Condition condition,
                                                        CompletionHandler<java.lang.Integer> completionHandler)
Specified by:
notifyCondition in interface Input

read

public byte read()
          throws java.io.IOException
Specified by:
read in interface Input
Throws:
java.io.IOException

skip

public void skip(int length)
Specified by:
skip in interface Input

isBuffered

public boolean isBuffered()
Specified by:
isBuffered in interface Input

getBuffer

public Buffer getBuffer()
Description copied from interface: Input
Return the Input's Buffer.

Specified by:
getBuffer in interface Input
Returns:
the Input's Buffer.

takeBuffer

public Buffer takeBuffer()
Description copied from interface: Input
Takes the Input's Buffer. This Input should never try to access this Buffer.

Specified by:
takeBuffer in interface Input
Returns:
the Input's Buffer. This Input should never try to access this Buffer.

size

public int size()
Specified by:
size in interface Input

close

public void close()
           throws java.io.IOException
Specified by:
close in interface Input
Throws:
java.io.IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.