S
- output type of parse(), input type translate()T
- output type of translate() input type of render()public abstract class Converter<S,T> extends Object implements Parser<S>, Renderer<T>, Transmogrifier<S,T>
Constructor and Description |
---|
Converter() |
Modifier and Type | Method and Description |
---|---|
OutputStream |
convert(InputStream in,
OutputStream out,
Object... params)
Parses a message and renders the internal model into a different external
representation.
|
Writer |
convert(Reader reader,
Writer writer,
Object... params)
Parses a message and renders the internal model into a different external
representation.
|
Result |
convert(Source source,
Result result,
Object... params)
Parses a message and renders the internal model into a different external
representation.
|
String |
convert(String message,
Object... params)
Parses a message and renders the internal model into a different external
representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse, parse, parse, parse
render, render, render, render
zap
public final String convert(String message, Object... params)
message
- message to be convertedParseException
RenderException
public final OutputStream convert(InputStream in, OutputStream out, Object... params) throws IOException
IOException
public final Result convert(Source source, Result result, Object... params) throws IOException
IOException
public final Writer convert(Reader reader, Writer writer, Object... params) throws IOException
IOException
Copyright © 2018 Open eHealth Foundation. All rights reserved.