org.exoplatform.services.rest.transformer
Class JAXBInputTransformer
java.lang.Object
org.exoplatform.services.rest.transformer.InputEntityTransformer
org.exoplatform.services.rest.transformer.JAXBInputTransformer
- All Implemented Interfaces:
- GenericEntityTransformer, GenericInputEntityTransformer
public class JAXBInputTransformer
- extends InputEntityTransformer
Create Object from given InputStream using JAXB transformation. Java
Architecture for XML Binding (JAXB) allows create and edit XML using familiar
Java objects.
JAXB is particularly useful when the specification is
complex and changing. This class can unmarshal XML given a stream into Java
object.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBInputTransformer
public JAXBInputTransformer()
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.