org.exoplatform.services.rest.transformer
Class PassthroughInputTransformer

java.lang.Object
  extended by org.exoplatform.services.rest.transformer.InputEntityTransformer
      extended by org.exoplatform.services.rest.transformer.PassthroughInputTransformer
All Implemented Interfaces:
GenericEntityTransformer, GenericInputEntityTransformer

public class PassthroughInputTransformer
extends InputEntityTransformer

This transformer does not do any transformation. It can be usefull when ResourceContainer does not request about building Object from stream and ResourceContainer needs input stream without any changes.

Version:
$Id: $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class org.exoplatform.services.rest.transformer.InputEntityTransformer
entityType
 
Constructor Summary
PassthroughInputTransformer()
           
 
Method Summary
 Object readFrom(InputStream entityDataStream)
          Build Objects from given InputStream.} .
 
Methods inherited from class org.exoplatform.services.rest.transformer.InputEntityTransformer
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassthroughInputTransformer

public PassthroughInputTransformer()
Method Detail

readFrom

public final Object readFrom(InputStream entityDataStream)
                      throws IOException
Build Objects from given InputStream.} .

Specified by:
readFrom in class InputEntityTransformer
Parameters:
entityDataStream - from this InputStream Object should be red.
Returns:
Object builded Object.
Throws:
IOException - Input/Output Exception.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.