Class BufferedFileInput

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, org.apache.hugegraph.computer.core.io.BytesInput, org.apache.hugegraph.computer.core.io.RandomAccessInput

    public class BufferedFileInput
    extends AbstractBufferedFileInput
    • Constructor Detail

      • BufferedFileInput

        public BufferedFileInput​(java.io.File file)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • BufferedFileInput

        public BufferedFileInput​(java.io.RandomAccessFile file,
                                 int bufferCapacity)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readFully

        public void readFully​(byte[] b,
                              int off,
                              int len)
                       throws java.io.IOException
        Specified by:
        readFully in interface java.io.DataInput
        Overrides:
        readFully in class UnsafeBytesInput
        Throws:
        java.io.IOException
      • seek

        public void seek​(long position)
                  throws java.io.IOException
        Specified by:
        seek in interface org.apache.hugegraph.computer.core.io.RandomAccessInput
        Overrides:
        seek in class UnsafeBytesInput
        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
        Overrides:
        close in class UnsafeBytesInput
        Throws:
        java.io.IOException
      • duplicate

        public BufferedFileInput duplicate()
                                    throws java.io.IOException
        Specified by:
        duplicate in interface org.apache.hugegraph.computer.core.io.RandomAccessInput
        Overrides:
        duplicate in class UnsafeBytesInput
        Throws:
        java.io.IOException