Interface Renderer<T>
-
- Type Parameters:
T
- the external representation
- All Known Implementing Classes:
CDAR2Renderer
,Converter
public interface Renderer<T>
Interface for creating an externalized version of an internal object model.- Author:
- Christian Ohr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStream
render(T model, OutputStream result, Object... params)
Renders the model into its external representation.Writer
render(T model, Writer result, Object... params)
Renders the model into its external representation.String
render(T model, Object... params)
Renders the model into its external representation.Result
render(T model, Result result, Object... params)
Renders the model into its external representation.
-
-
-
Method Detail
-
render
Result render(T model, Result result, Object... params) throws IOException
Renders the model into its external representation.- Parameters:
model
-params
- dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.- Returns:
- the external representation of the model
- Throws:
RenderException
IOException
-
render
OutputStream render(T model, OutputStream result, Object... params) throws IOException
Renders the model into its external representation.- Parameters:
model
-params
- dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.- Returns:
- the external representation of the model
- Throws:
RenderException
IOException
-
render
Writer render(T model, Writer result, Object... params) throws IOException
Renders the model into its external representation.- Parameters:
model
-params
- dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.- Returns:
- the external representation of the model
- Throws:
RenderException
IOException
-
render
String render(T model, Object... params)
Renders the model into its external representation.- Parameters:
model
-params
- dynamic information used during rendering. See the respective implementation class documentation if this is required or supported.- Returns:
- the external representation of the model
- Throws:
RenderException
-
-