org.glassfish.grizzly.streams
Class TransformerInput

java.lang.Object
  extended by org.glassfish.grizzly.streams.BufferedInput
      extended by org.glassfish.grizzly.streams.TransformerInput
All Implemented Interfaces:
Input

public final class TransformerInput
extends BufferedInput

Author:
Alexey Stashok

Nested Class Summary
 class TransformerInput.TransformerCompletionHandler
           
 class TransformerInput.TransformerCondition
           
 
Field Summary
protected  AttributeStorage attributeStorage
           
protected  MemoryManager memoryManager
           
protected  Transformer<Buffer,Buffer> transformer
           
protected  Input underlyingInput
           
 
Fields inherited from class org.glassfish.grizzly.streams.BufferedInput
completionHandler, compositeBuffer, condition, future, isCompletionHandlerRegistered, lock, registrationStackTrace
 
Constructor Summary
TransformerInput(Transformer<Buffer,Buffer> transformer, Input underlyingInput, Connection connection)
           
TransformerInput(Transformer<Buffer,Buffer> transformer, Input underlyingInput, MemoryManager memoryManager, AttributeStorage attributeStorage)
           
 
Method Summary
protected  void onCloseInputSource()
           
protected  void onOpenInputSource()
           
 
Methods inherited from class org.glassfish.grizzly.streams.BufferedInput
append, close, getBuffer, isBuffered, notifyCompleted, notifyCondition, notifyFailure, prepend, read, size, skip, takeBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformer

protected final Transformer<Buffer,Buffer> transformer

underlyingInput

protected final Input underlyingInput

memoryManager

protected final MemoryManager memoryManager

attributeStorage

protected final AttributeStorage attributeStorage
Constructor Detail

TransformerInput

public TransformerInput(Transformer<Buffer,Buffer> transformer,
                        Input underlyingInput,
                        Connection connection)

TransformerInput

public TransformerInput(Transformer<Buffer,Buffer> transformer,
                        Input underlyingInput,
                        MemoryManager memoryManager,
                        AttributeStorage attributeStorage)
Method Detail

onOpenInputSource

protected void onOpenInputSource()
                          throws java.io.IOException
Specified by:
onOpenInputSource in class BufferedInput
Throws:
java.io.IOException

onCloseInputSource

protected void onCloseInputSource()
                           throws java.io.IOException
Specified by:
onCloseInputSource in class BufferedInput
Throws:
java.io.IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.