org.glassfish.grizzly.nio.transport
Class DefaultStreamWriter

java.lang.Object
  extended by org.glassfish.grizzly.streams.AbstractStreamWriter
      extended by org.glassfish.grizzly.nio.transport.DefaultStreamWriter
All Implemented Interfaces:
java.io.Closeable, Stream, StreamWriter

public final class DefaultStreamWriter
extends AbstractStreamWriter

Author:
Alexey Stashok

Nested Class Summary
static class DefaultStreamWriter.Output
           
 
Nested classes/interfaces inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
AbstractStreamWriter.DisposeBufferCompletionHandler
 
Field Summary
 
Fields inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
isOutputBuffered, logger, output, ZERO, ZERO_READY_FUTURE
 
Constructor Summary
DefaultStreamWriter(Connection connection)
           
 
Method Summary
 GrizzlyFuture<java.lang.Integer> flush(CompletionHandler<java.lang.Integer> completionHandler)
          Cause the overflow handler to be called even if buffer is not full.
 
Methods inherited from class org.glassfish.grizzly.streams.AbstractStreamWriter
close, close, encode, encode, flush, getConnection, getTimeout, isClosed, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStreamWriter

public DefaultStreamWriter(Connection connection)
Method Detail

flush

public GrizzlyFuture<java.lang.Integer> flush(CompletionHandler<java.lang.Integer> completionHandler)
                                       throws java.io.IOException
Description copied from class: AbstractStreamWriter
Cause the overflow handler to be called even if buffer is not full.

Specified by:
flush in interface StreamWriter
Overrides:
flush in class AbstractStreamWriter
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.