org.glassfish.grizzly.streams
Interface Output

All Known Implementing Classes:
BufferedOutput, DefaultStreamWriter.Output, StreamOutput, TransformerOutput

public interface Output

Author:
oleksiys

Method Summary
 GrizzlyFuture<java.lang.Integer> close(CompletionHandler<java.lang.Integer> completionHandler)
          Close the StreamWriter and make sure all data was flushed.
 void ensureBufferCapacity(int size)
           
 GrizzlyFuture<java.lang.Integer> flush(CompletionHandler<java.lang.Integer> completionHandler)
          Make sure that all data that has been written is flushed from the stream to its destination.
 Buffer getBuffer()
          Return the Input's Buffer.
 boolean isBuffered()
           
 void write(Buffer buffer)
           
 void write(byte data)
           
 

Method Detail

write

void write(byte data)
           throws java.io.IOException
Throws:
java.io.IOException

write

void write(Buffer buffer)
           throws java.io.IOException
Throws:
java.io.IOException

isBuffered

boolean isBuffered()

ensureBufferCapacity

void ensureBufferCapacity(int size)
                          throws java.io.IOException
Throws:
java.io.IOException

getBuffer

Buffer getBuffer()
Return the Input's Buffer.

Returns:
the Input's Buffer.

flush

GrizzlyFuture<java.lang.Integer> flush(CompletionHandler<java.lang.Integer> completionHandler)
                                       throws java.io.IOException
Make sure that all data that has been written is flushed from the stream to its destination.

Throws:
java.io.IOException

close

GrizzlyFuture<java.lang.Integer> close(CompletionHandler<java.lang.Integer> completionHandler)
                                       throws java.io.IOException
Close the StreamWriter and make sure all data was flushed.

Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.