Class DefaultNodeFactory

  • All Implemented Interfaces:
    NodeFactory

    @Deprecated
    public final class DefaultNodeFactory
    extends java.lang.Object
    implements NodeFactory
    Deprecated.
    Default Node factory implementation.

    Uses Jackson internally, but that is free to change in the future if needed.

    Using this class directly is deprecated and it will be made package-private in 0.10.0. Use Node.parse(java.lang.String) instead.

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultNodeFactory()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Node createNode​(java.lang.String filename, java.io.InputStream input)
      Deprecated.
       
      Node createNode​(java.lang.String filename, java.lang.String text)
      Deprecated.
      Creates a Node from a document String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultNodeFactory

        public DefaultNodeFactory()
        Deprecated.
    • Method Detail

      • createNode

        public Node createNode​(java.lang.String filename,
                               java.lang.String text)
        Deprecated.
        Description copied from interface: NodeFactory
        Creates a Node from a document String.

        The filename is used in error messages and for populating source locations for the built node objects.

        Specified by:
        createNode in interface NodeFactory
        Parameters:
        filename - The name of the document that is being parsed to create nodes.
        text - The document to parse into nodes.
        Returns:
        Returns a Node representing the document.
      • createNode

        public Node createNode​(java.lang.String filename,
                               java.io.InputStream input)
        Deprecated.