Code example for MappedByteBuffer

Methods: position

0
    /** 
     * @see java.io.RandomAccessFile#seek(long) 
     * @param pos long position 
     */ 
    public void seek(long pos) {
        mappedByteBuffer.position((int) pos);
    } 
     
    /** 
     * @see java.io.RandomAccessFile#length() 
     * @return long length 
     */ 
    public long length() { 
        return mappedByteBuffer.limit();
    } 
     
    /** 
     * @see java.io.RandomAccessFile#close() 
     * Cleans the mapped bytebuffer and closes the channel 
     */ 
    public void close() throws IOException {