Class NodeStreamConverter


  • public class NodeStreamConverter
    extends java.lang.Object
    Allows to convert a flat-file store to a node stream.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void convert​(java.lang.String sourceFileName, java.lang.String targetFileName)  
      static void main​(java.lang.String... args)  
      static void writeVarInt​(java.io.OutputStream out, int x)
      Write a variable size int.
      • Methods inherited from class java.lang.Object

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

      • NodeStreamConverter

        public NodeStreamConverter()
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • convert

        public static void convert​(java.lang.String sourceFileName,
                                   java.lang.String targetFileName)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeVarInt

        public static void writeVarInt​(java.io.OutputStream out,
                                       int x)
                                throws java.io.IOException
        Write a variable size int.
        Parameters:
        out - the output stream
        x - the value
        Throws:
        java.io.IOException - if some data could not be written