org.exoplatform.services.rest.transformer
Class PassthroughOutputTransformer
java.lang.Object
org.exoplatform.services.rest.transformer.OutputEntityTransformer
org.exoplatform.services.rest.transformer.PassthroughOutputTransformer
- All Implemented Interfaces:
- GenericEntityTransformer, GenericOutputEntityTransformer
public class PassthroughOutputTransformer
- extends OutputEntityTransformer
This transformer read data from given InputStream and write it to
OutputStream. This type of transformers can be usefull when ResourceContainer
produce InputStream representation of requested resource.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassthroughOutputTransformer
public PassthroughOutputTransformer()
writeTo
public final void writeTo(Object entity,
OutputStream entityDataStream)
throws IOException
- Write entity to OutputStream.} .
- Specified by:
writeTo in class OutputEntityTransformer
- Parameters:
entity - the Object which should be writedentityDataStream - the OutputStream
- Throws:
IOException - Input/Output Exception
Copyright © 2009 eXo Platform SAS. All Rights Reserved.