Class Converter<S,T>
java.lang.Object
org.openehealth.ipf.commons.core.modules.api.Converter<S,T>
- Type Parameters:
S
- output type of parse(), input type translate()T
- output type of translate() input type of render()
- All Implemented Interfaces:
Parser<S>
,Renderer<T>
,Transmogrifier<S,
T>
public abstract class Converter<S,T>
extends Object
implements Parser<S>, Renderer<T>, Transmogrifier<S,T>
Abstract class that serializes parsing, translating and rendering steps.
- Author:
- Christian Ohr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal OutputStream
convert
(InputStream in, OutputStream out, Object... params) Parses a message and renders the internal model into a different external representation.final Writer
Parses a message and renders the internal model into a different external representation.final String
Parses a message and renders the internal model into a different external representation.final Result
Parses a message and renders the internal model into a different external representation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.core.modules.api.Parser
parse, parse, parse, parse
Methods inherited from interface org.openehealth.ipf.commons.core.modules.api.Renderer
render, render, render, render
Methods inherited from interface org.openehealth.ipf.commons.core.modules.api.Transmogrifier
zap
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
convert
Parses a message and renders the internal model into a different external representation.- Parameters:
message
- message to be converted- Returns:
- converted message
-
convert
public final OutputStream convert(InputStream in, OutputStream out, Object... params) throws IOException Parses a message and renders the internal model into a different external representation.- Throws:
IOException
-
convert
Parses a message and renders the internal model into a different external representation.- Throws:
IOException
-
convert
Parses a message and renders the internal model into a different external representation.- Throws:
IOException
-