Class LocalFileSystem.LocalRandomAccessFile

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.io.DataOutput, java.lang.AutoCloseable, RandomDataInput, RandomDataOutput
    Enclosing class:
    LocalFileSystem

    protected static class LocalFileSystem.LocalRandomAccessFile
    extends java.io.RandomAccessFile
    implements RandomDataOutput
    A file that supports random access
    Author:
    Richard McCreadie
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalRandomAccessFile​(java.lang.String name, java.lang.String mode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void readFullyDirect​(byte[] dst, long offset, int length)  
      • Methods inherited from class java.io.RandomAccessFile

        close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface java.io.DataInput

        readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
      • Methods inherited from interface java.io.DataOutput

        write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
    • Constructor Detail

      • LocalRandomAccessFile

        public LocalRandomAccessFile​(java.lang.String name,
                                     java.lang.String mode)
                              throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • readFullyDirect

        public void readFullyDirect​(byte[] dst,
                                    long offset,
                                    int length)
                             throws java.io.IOException
        Specified by:
        readFullyDirect in interface RandomDataInput
        Throws:
        java.io.IOException