|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asyncobjects.AsyncUnicastServer<AByteInput> net.sf.asyncobjects.io.adapters.InputStreamAdapter
public class InputStreamAdapter
Adapter for input stream
Constructor Summary | |
---|---|
InputStreamAdapter(InputStream in)
A constructor |
|
InputStreamAdapter(InputStream in,
int bufferSize)
A constructor |
Method Summary | |
---|---|
Promise<Void> |
close()
close stream |
Promise<Boolean> |
isPushbackSupported()
|
Promise<Void> |
pushback(BinaryData data)
Pushback data |
Promise<BinaryData> |
read(int limit)
read some bytes |
Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer |
---|
dereference, export, isImmediate, myVat, promise |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.asyncobjects.AsyncObject |
---|
dereference, isImmediate |
Constructor Detail |
---|
public InputStreamAdapter(InputStream in)
in
- input stream to wrappublic InputStreamAdapter(InputStream in, int bufferSize)
in
- input stream to wrapbufferSize
- a buffer sizeMethod Detail |
---|
public Promise<BinaryData> read(int limit)
read
in interface AInput<BinaryData>
limit
- a maximum amount of data expected by client.
AInput.read(int)
public Promise<Void> close()
close
in interface ACloseable
ACloseable.close()
public Promise<Boolean> isPushbackSupported()
isPushbackSupported
in interface AInput<BinaryData>
AInput.isPushbackSupported()
public Promise<Void> pushback(BinaryData data)
pushback
in interface AInput<BinaryData>
data
- a data to push back
AInput.pushback(net.sf.asyncobjects.io.BatchedData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |