Interface NodeWriter.Factory

  • Enclosing interface:
    NodeWriter

    public static interface NodeWriter.Factory
    A factory to instantiate a node writer.
    • 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.