Top Methods
org.glassfish.grizzly.streams

public Interface Output

Known Direct Implementers
org.glassfish.grizzly.streams.StreamOutput, org.glassfish.grizzly.streams.BufferedOutput
Imports
java.io.IOException, org.glassfish.grizzly.Buffer, .CompletionHandler, .GrizzlyFuture

Author
oleksiys

Method Summary

Modifier and TypeMethod and Description
public GrizzlyFuture<Integer>
close(CompletionHandler<Integer> completionHandler)

Close the StreamWriter and make sure all data was flushed.

public void
public GrizzlyFuture<Integer>
flush(CompletionHandler<Integer> completionHandler)

Make sure that all data that has been written is flushed from the stream to its destination.

public Buffer

Returns:

the Input's Buffer.
getBuffer
()

Return the Input's Buffer.

public boolean
public void
write(byte data)

public void
write(Buffer buffer)

Method Detail

closeback to summary
public GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException

Close the StreamWriter and make sure all data was flushed.

ensureBufferCapacityback to summary
public void ensureBufferCapacity(int size) throws IOException
flushback to summary
public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException

Make sure that all data that has been written is flushed from the stream to its destination.

getBufferback to summary
public Buffer getBuffer()

Return the Input's Buffer.

Returns:Buffer

the Input's Buffer.

isBufferedback to summary
public boolean isBuffered()
writeback to summary
public void write(byte data) throws IOException
writeback to summary
public void write(Buffer buffer) throws IOException