Top Fields Constructors Methods
org.glassfish.grizzly.streams

public Class TransformerOutput

extends BufferedOutput
Class Inheritance
Annotations
@SuppressWarnings:unchecked
Imports
java.io.IOException, org.glassfish.grizzly.Buffer, .CompletionHandler, .Connection, .Grizzly, .GrizzlyFuture, .TransformationResult, .TransformationResult.Status, .Transformer, org.glassfish.grizzly.attributes.Attribute, .AttributeStorage, org.glassfish.grizzly.impl.ReadyFutureImpl, org.glassfish.grizzly.memory.CompositeBuffer, .MemoryManager

Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
protected final AttributeStorage
protected final MemoryManager<E extends Buffer>
private final Attribute<CompositeBuffer>
protected final Transformer<Buffer, Buffer>
protected final Output
Inherited from org.glassfish.grizzly.streams.BufferedOutput:
bufferSizeisClosedmultiBufferWindowZEROZERO_READY_FUTURE

Constructor Summary

AccessConstructor and Description
public
TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, Connection<L> connection)

public
TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, MemoryManager<E extends Buffer> memoryManager, AttributeStorage attributeStorage)

Method Summary

Modifier and TypeMethod and Description
protected GrizzlyFuture<Integer>
flush0(Buffer buffer, final CompletionHandler<Integer> completionHandler)

Implements abstract org.glassfish.grizzly.streams.BufferedOutput.flush0.

protected Buffer
protected void
protected Buffer
Inherited from org.glassfish.grizzly.streams.BufferedOutput:
closeensureBufferCapacityflushgetBuffergetBufferedSizeisBufferedwritewrite

Field Detail

attributeStorageback to summary
protected final AttributeStorage attributeStorage
memoryManagerback to summary
protected final MemoryManager<E extends Buffer> memoryManager
outputBufferAttrback to summary
private final Attribute<CompositeBuffer> outputBufferAttr
transformerback to summary
protected final Transformer<Buffer, Buffer> transformer
underlyingOutputback to summary
protected final Output underlyingOutput

Constructor Detail

TransformerOutputback to summary
public TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, Connection<L> connection)
TransformerOutputback to summary
public TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, MemoryManager<E extends Buffer> memoryManager, AttributeStorage attributeStorage)

Method Detail

flush0back to summary
protected GrizzlyFuture<Integer> flush0(Buffer buffer, final CompletionHandler<Integer> completionHandler) throws IOException

Implements abstract org.glassfish.grizzly.streams.BufferedOutput.flush0.

Annotations
@Override
newBufferback to summary
protected Buffer newBuffer(int size)

Implements abstract org.glassfish.grizzly.streams.BufferedOutput.newBuffer.

Annotations
@Override
onClosedback to summary
protected void onClosed() throws IOException

Implements abstract org.glassfish.grizzly.streams.BufferedOutput.onClosed.

Annotations
@Override
reallocateBufferback to summary
protected Buffer reallocateBuffer(Buffer oldBuffer, int size)

Implements abstract org.glassfish.grizzly.streams.BufferedOutput.reallocateBuffer.

Annotations
@Override