Code example for MappedByteBuffer

Methods: capacityget

0
        return position - ((MappedFileDataInputMark) mark).position;
    } 
 
    public boolean isEOF() throws IOException 
    { 
        return position == buffer.capacity();
    } 
 
    public long bytesRemaining() throws IOException 
    { 
        return buffer.capacity() - position;
    } 
 
    public String getPath()
    { 
        return filename;
    } 
 
    public int read() throws IOException 
    { 
        if (isEOF()) 
            return -1; 
        return buffer.get(position++) & 0xFF;
    } 
 
    /** 
     * Does the same thing as <code>readFully</code> do but without copying data (thread safe) 
     * @param length length of the bytes to read 
Connect your IDE to all the code out there  Get Codota for Java