Package com.sodius.mdw.server.storage
Interface NodeWriter.Factory
-
- Enclosing interface:
- NodeWriter
public static interface NodeWriter.Factory
A factory to instantiate a node writer.
-
-
Field Summary
Fields Modifier and Type Field Description static NodeWriter.Factory
JSON
A factory to instantiate a writer producing JSON format.static NodeWriter.Factory
XML
A factory to instantiate a writer producing XML format.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodeWriter
create(Writer writer, Map<?,?> options)
Creates a new node writer instance for the specified output and options.
-
-
-
Field Detail
-
XML
static final NodeWriter.Factory XML
A factory to instantiate a writer producing XML format.
-
JSON
static final NodeWriter.Factory JSON
A factory to instantiate a writer producing JSON format.
-
-
Method Detail
-
create
NodeWriter create(Writer writer, Map<?,?> options)
Creates a new node writer instance for the specified output and options.- Parameters:
writer
- the writer used to serialize characters produced by the node writer.options
- properties to configure the writing process. This is not used at this time.- Returns:
- a node writer to build a node tree.
-
-