Class CDataFileRWAccess

    • Field Detail

      • io

        protected java.io.RandomAccessFile io
    • Constructor Detail

      • CDataFileRWAccess

        protected CDataFileRWAccess​(java.io.RandomAccessFile in,
                                    int pointerSize)
    • Method Detail

      • skip

        public final long skip​(long n)
                        throws java.io.IOException
        Specified by:
        skip in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • available

        public final int available()
                            throws java.io.IOException
        Specified by:
        available in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • readFully

        public final void readFully​(byte[] b,
                                    int off,
                                    int len)
                             throws java.io.IOException
        Overrides:
        readFully in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • writeFully

        public final void writeFully​(byte[] b,
                                     int off,
                                     int len)
                              throws java.io.IOException
        Overrides:
        writeFully in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • readBoolean

        public final boolean readBoolean()
                                  throws java.io.IOException
        Overrides:
        readBoolean in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • writeBoolean

        public final void writeBoolean​(boolean value)
                                throws java.io.IOException
        Overrides:
        writeBoolean in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • readByte

        public final byte readByte()
                            throws java.io.IOException
        Specified by:
        readByte in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • writeByte

        public final void writeByte​(int value)
                             throws java.io.IOException
        Specified by:
        writeByte in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • offset

        public final void offset​(long offset)
                          throws java.io.IOException
        Specified by:
        offset in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • offset

        public long offset()
                    throws java.io.IOException
        Specified by:
        offset in class CDataReadWriteAccess
        Throws:
        java.io.IOException
      • padding

        public void padding​(int alignment,
                            boolean extend)
                     throws java.io.IOException
        Description copied from class: CDataReadWriteAccess
        Inserts padding at a given offset to fit a given alignment during reading or writing in streams. In case of writing, the stream can't just skip past the end and needs to actually write. The parameter 'extend' tells this method whether it is allowed to extend past the end or not.
        Specified by:
        padding in class CDataReadWriteAccess
        Parameters:
        alignment - Requrested aligment
        extend - Extend past boundary (write mode)
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException