Interface ReadWriteBytesFileChannel

    • Method Detail

      • writeBytesToFileChannel

        long writeBytesToFileChannel​(FileChannel pFileChannel,
                                     long pFilePositionInBytes)
                              throws IOException
        Writes the whole contents of this memory object at a given offset of a file channel.
        Parameters:
        pFileChannel - file channel
        pFilePositionInBytes - file position
        Returns:
        file position past the last written byte.
        Throws:
        IOException - Thrown in case of IO problem.
      • writeBytesToFileChannel

        long writeBytesToFileChannel​(long pBufferPositionInBytes,
                                     FileChannel pFileChannel,
                                     long pFilePositionInBytes,
                                     long pLengthInBytes)
                              throws IOException
        Writes data at a given range from this memory object at a given offset of a file channel.
        Parameters:
        pBufferPositionInBytes - offset in memory object
        pFileChannel - file channel
        pFilePositionInBytes - file channel offset
        pLengthInBytes - length in bytes
        Returns:
        file position past the last written byte.
        Throws:
        IOException - Thrown in case of IO problem.
      • readBytesFromFileChannel

        long readBytesFromFileChannel​(FileChannel pFileChannel,
                                      long pFilePositionInBytes,
                                      long pLengthInBytes)
                               throws IOException
        Reads data into this memory object for a certain position of a file channel.
        Parameters:
        pFileChannel - file channel
        pFilePositionInBytes - offset in file channel
        pLengthInBytes - length in bytes
        Returns:
        File position past the last byte read.
        Throws:
        IOException - Thrown in case of IO problem.
      • readBytesFromFileChannel

        long readBytesFromFileChannel​(long pBufferPositionInBytes,
                                      FileChannel pFileChannel,
                                      long pFilePositionInBytes,
                                      long pLengthInBytes)
                               throws IOException
        Parameters:
        pBufferPositionInBytes - offset in memory object
        pFileChannel - file channel
        pFilePositionInBytes - offset in file channel
        pLengthInBytes - length in bytes
        Returns:
        File position past the last byte read.
        Throws:
        IOException - Thrown in case of IO problem.