Top Fields Constructors Methods
org.glassfish.grizzly.streams

public Class StreamOutput

extends Object
implements Output
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.streams.Output
Imports
java.io.IOException, org.glassfish.grizzly.Buffer, .CompletionHandler, .GrizzlyFuture

Author
oleksiys

Field Summary

Modifier and TypeField and Description
private final StreamWriter

Constructor Summary

AccessConstructor and Description
public
StreamOutput(StreamWriter streamWriter)

Method Summary

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

Implements org.glassfish.grizzly.streams.Output.close.

Close the StreamWriter and make sure all data was flushed.

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

Implements org.glassfish.grizzly.streams.Output.flush.

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

public Buffer
public boolean
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

streamWriterback to summary
private final StreamWriter streamWriter

Constructor Detail

StreamOutputback to summary
public StreamOutput(StreamWriter streamWriter)

Method Detail

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

Implements org.glassfish.grizzly.streams.Output.close.

Doc from org.glassfish.grizzly.streams.Output.close.

Close the StreamWriter and make sure all data was flushed.

Annotations
@Override
ensureBufferCapacityback to summary
public void ensureBufferCapacity(int size) throws IOException

Implements org.glassfish.grizzly.streams.Output.ensureBufferCapacity.

Annotations
@Override
flushback to summary
public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException

Implements org.glassfish.grizzly.streams.Output.flush.

Doc from org.glassfish.grizzly.streams.Output.flush.

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

Annotations
@Override
getBufferback to summary
public Buffer getBuffer()

Implements org.glassfish.grizzly.streams.Output.getBuffer.

Doc from org.glassfish.grizzly.streams.Output.getBuffer.

Return the Input's Buffer.

Annotations
@Override
isBufferedback to summary
public boolean isBuffered()

Implements org.glassfish.grizzly.streams.Output.isBuffered.

Annotations
@Override
writeback to summary
public void write(byte data) throws IOException

Implements org.glassfish.grizzly.streams.Output.write.

Annotations
@Override
writeback to summary
public void write(Buffer buffer) throws IOException

Implements org.glassfish.grizzly.streams.Output.write.

Annotations
@Override