com.sun.grizzly.smart.transformers
Class PrimitiveDecoder<E>

java.lang.Object
  extended by com.sun.grizzly.AbstractTransformer<Buffer,E>
      extended by com.sun.grizzly.smart.transformers.AbstractSmartMemberDecoder<E>
          extended by com.sun.grizzly.smart.transformers.PrimitiveDecoder<E>
All Implemented Interfaces:
SmartMemberTransformer<Buffer,E>, Transformer<Buffer,E>
Direct Known Subclasses:
ByteDecoder, CharDecoder, DoubleDecoder, FloatDecoder, IntegerDecoder, LongDecoder, ShortDecoder

public abstract class PrimitiveDecoder<E>
extends AbstractSmartMemberDecoder<E>

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class com.sun.grizzly.smart.transformers.AbstractSmartMemberDecoder
messageProcessingTreeAttribute
 
Fields inherited from class com.sun.grizzly.AbstractTransformer
attributeBuilder, incompletedResult, inputBufferAttribute, lastResultAttribute, outputBufferAttribute
 
Constructor Summary
PrimitiveDecoder()
           
 
Method Summary
abstract  E get(Buffer input)
           
abstract  int sizeOf()
           
 TransformationResult<E> transform(AttributeStorage storage, Buffer input, E output)
          Transforms an input data to some custom representation.
 
Methods inherited from class com.sun.grizzly.smart.transformers.AbstractSmartMemberDecoder
getCurrentMessageProcessingObject, getMessageProcessingTree, initialize
 
Methods inherited from class com.sun.grizzly.AbstractTransformer
getInput, getLastResult, getMemoryManager, getOutput, getProperties, getValue, hibernate, obtainMemoryManager, release, setInput, setMemoryManager, setOutput, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.grizzly.Transformer
getInput, getLastResult, getOutput, getProperties, hibernate, release, setInput, setOutput, transform
 

Constructor Detail

PrimitiveDecoder

public PrimitiveDecoder()
Method Detail

transform

public TransformationResult<E> transform(AttributeStorage storage,
                                         Buffer input,
                                         E output)
                                  throws TransformationException
Description copied from interface: Transformer
Transforms an input data to some custom representation.

Parameters:
storage - the external state storage, where Transformer could retrieve or store its state.
Returns:
the result TransformationResult
Throws:
TransformationException

sizeOf

public abstract int sizeOf()

get

public abstract E get(Buffer input)


Copyright © 2009 SUN Microsystems. All Rights Reserved.