public class TransformerOutput extends BufferedOutput
Modifier and Type | Field and Description |
---|---|
protected AttributeStorage |
attributeStorage |
protected MemoryManager |
memoryManager |
protected Transformer<Buffer,Buffer> |
transformer |
protected Output |
underlyingOutput |
bufferSize, isClosed, multiBufferWindow, ZERO, ZERO_READY_FUTURE
Constructor and Description |
---|
TransformerOutput(Transformer<Buffer,Buffer> transformer,
Output underlyingOutput,
Connection connection) |
TransformerOutput(Transformer<Buffer,Buffer> transformer,
Output underlyingOutput,
MemoryManager memoryManager,
AttributeStorage attributeStorage) |
Modifier and Type | Method and Description |
---|---|
protected GrizzlyFuture<Integer> |
flush0(Buffer buffer,
CompletionHandler<Integer> completionHandler) |
protected Buffer |
newBuffer(int size) |
protected void |
onClosed() |
protected Buffer |
reallocateBuffer(Buffer oldBuffer,
int size) |
close, ensureBufferCapacity, flush, getBuffer, getBufferedSize, isBuffered, write, write
protected final Transformer<Buffer,Buffer> transformer
protected final Output underlyingOutput
protected final MemoryManager memoryManager
protected final AttributeStorage attributeStorage
public TransformerOutput(Transformer<Buffer,Buffer> transformer, Output underlyingOutput, Connection connection)
public TransformerOutput(Transformer<Buffer,Buffer> transformer, Output underlyingOutput, MemoryManager memoryManager, AttributeStorage attributeStorage)
protected GrizzlyFuture<Integer> flush0(Buffer buffer, CompletionHandler<Integer> completionHandler) throws IOException
flush0
in class BufferedOutput
IOException
protected Buffer newBuffer(int size)
newBuffer
in class BufferedOutput
protected Buffer reallocateBuffer(Buffer oldBuffer, int size)
reallocateBuffer
in class BufferedOutput
protected void onClosed() throws IOException
onClosed
in class BufferedOutput
IOException
Copyright © 2014 Oracle Corporation. All rights reserved.