Class NodeLineReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, NodeDataReader

    public class NodeLineReader
    extends java.lang.Object
    implements NodeDataReader, java.io.Closeable
    A reader for flat file stores.
    • Method Detail

      • open

        public static NodeLineReader open​(java.lang.String fileName)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readNode

        public NodeData readNode()
                          throws java.io.IOException
        Description copied from interface: NodeDataReader
        Read the next node.
        Specified by:
        readNode in interface NodeDataReader
        Returns:
        the node, or null for EOF
        Throws:
        java.io.IOException
      • fromJsonArray

        public static NodeProperty fromJsonArray​(java.lang.String key,
                                                 java.lang.String json)
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException