Class NodeStreamReaderCompressed

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

    public class NodeStreamReaderCompressed
    extends java.lang.Object
    implements NodeDataReader
    A node stream reader with compression for repeated strings.
    • Method Detail

      • open

        public static NodeStreamReaderCompressed 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
      • 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