org.glassfish.grizzly.nio.transport
Class DefaultStreamWriter.Output

java.lang.Object
  extended by org.glassfish.grizzly.streams.BufferedOutput
      extended by org.glassfish.grizzly.nio.transport.DefaultStreamWriter.Output
All Implemented Interfaces:
Output
Enclosing class:
DefaultStreamWriter

public static final class DefaultStreamWriter.Output
extends BufferedOutput


Field Summary
 
Fields inherited from class org.glassfish.grizzly.streams.BufferedOutput
bufferSize, isClosed, multiBufferWindow, ZERO, ZERO_READY_FUTURE
 
Constructor Summary
DefaultStreamWriter.Output(Connection connection)
           
 
Method Summary
protected  GrizzlyFuture<java.lang.Integer> flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)
           
protected  Buffer newBuffer(int size)
           
protected  void onClosed()
           
protected  Buffer reallocateBuffer(Buffer oldBuffer, int size)
           
 
Methods inherited from class org.glassfish.grizzly.streams.BufferedOutput
close, ensureBufferCapacity, flush, getBuffer, getBufferedSize, isBuffered, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStreamWriter.Output

public DefaultStreamWriter.Output(Connection connection)
Method Detail

flush0

protected GrizzlyFuture<java.lang.Integer> flush0(Buffer buffer,
                                                  CompletionHandler<java.lang.Integer> completionHandler)
                                           throws java.io.IOException
Specified by:
flush0 in class BufferedOutput
Throws:
java.io.IOException

newBuffer

protected Buffer newBuffer(int size)
Specified by:
newBuffer in class BufferedOutput

reallocateBuffer

protected Buffer reallocateBuffer(Buffer oldBuffer,
                                  int size)
Specified by:
reallocateBuffer in class BufferedOutput

onClosed

protected void onClosed()
                 throws java.io.IOException
Specified by:
onClosed in class BufferedOutput
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.