Class InputStreamToXomConverter
java.lang.Object
org.axonframework.serialization.xml.InputStreamToXomConverter
- All Implemented Interfaces:
ContentTypeConverter<InputStream,nu.xom.Document>
public class InputStreamToXomConverter
extends Object
implements ContentTypeConverter<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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnu.xom.Documentconvert(InputStream original) Converts the given object into another.The expected type of input data.Class<nu.xom.Document> The returned type of IntermediateRepresentation
-
Constructor Details
-
InputStreamToXomConverter
public InputStreamToXomConverter()
-
-
Method Details
-
expectedSourceType
Description copied from interface:ContentTypeConverterThe expected type of input data.- Specified by:
expectedSourceTypein interfaceContentTypeConverter<InputStream,nu.xom.Document> - Returns:
- the expected data format in IntermediateRepresentation
-
targetType
Description copied from interface:ContentTypeConverterThe returned type of IntermediateRepresentation- Specified by:
targetTypein interfaceContentTypeConverter<InputStream,nu.xom.Document> - Returns:
- the output data format in IntermediateRepresentation
-
convert
Description copied from interface:ContentTypeConverterConverts the given object into another. Typically, these values are contained by aSerializedObjectinstance.- Specified by:
convertin interfaceContentTypeConverter<InputStream,nu.xom.Document> - Parameters:
original- the value to convert- Returns:
- the converted value
-