|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asyncobjects.AsyncUnicastServer<AByteOutput> net.sf.asyncobjects.io.adapters.OutputStreamAdapter
public class OutputStreamAdapter
An adapter for output stream
Constructor Summary | |
---|---|
OutputStreamAdapter(OutputStream out)
A constructor |
|
OutputStreamAdapter(OutputStream out,
int bufferSize)
A constructor |
Method Summary | |
---|---|
Promise<Void> |
close()
close stream |
Promise<Void> |
flush()
Flush output |
Promise<Void> |
write(BinaryData data)
Write data to stream |
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 OutputStreamAdapter(OutputStream out)
out
- wrapped output streampublic OutputStreamAdapter(OutputStream out, int bufferSize)
out
- wrapped ouput streambufferSize
- a buffer sizeMethod Detail |
---|
public Promise<Void> write(BinaryData data)
write
in interface AOutput<BinaryData>
data
- a data to write
AOutput.write(net.sf.asyncobjects.io.BatchedData)
public Promise<Void> flush()
flush
in interface AOutput<BinaryData>
AOutput.flush()
public Promise<Void> close()
close
in interface ACloseable
ACloseable.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |