org.axonframework.serializer.xml
Class InputStreamToXomConverter

java.lang.Object
  extended by org.axonframework.serializer.AbstractContentTypeConverter<InputStream,nu.xom.Document>
      extended by org.axonframework.serializer.xml.InputStreamToXomConverter
All Implemented Interfaces:
ContentTypeConverter<InputStream,nu.xom.Document>

public class InputStreamToXomConverter
extends AbstractContentTypeConverter<InputStream,nu.xom.Document>

Converter that converts an input stream to a XOM document. It assumes that the input stream provides UTF-8 formatted XML.

Since:
2.2
Author:
Jochen Munz

Constructor Summary
InputStreamToXomConverter()
           
 
Method Summary
 nu.xom.Document convert(InputStream original)
          Converts the given object into another.
 Class<InputStream> expectedSourceType()
          The expected type of input data.
 Class<nu.xom.Document> targetType()
          The returned type of IntermediateRepresentation
 
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamToXomConverter

public InputStreamToXomConverter()
Method Detail

expectedSourceType

public Class<InputStream> expectedSourceType()
Description copied from interface: ContentTypeConverter
The expected type of input data.

Returns:
the expected data format in IntermediateRepresentation

targetType

public Class<nu.xom.Document> targetType()
Description copied from interface: ContentTypeConverter
The returned type of IntermediateRepresentation

Returns:
the output data format in IntermediateRepresentation

convert

public nu.xom.Document convert(InputStream original)
Description copied from interface: ContentTypeConverter
Converts the given object into another. Typically, these values are contained by a SerializedObject instance.

Parameters:
original - the value to convert
Returns:
the converted value


Copyright © 2010-2016. All Rights Reserved.