Code example for MappedByteBuffer

Methods: position, put

0
	public void writeImpl(int position, byte b) {
	    buffer.put(position, b);
	} 
 
	public void writeImpl(int position, byte[] b, int off, int len) {
	    buffer.position(position);
	    buffer.put(b, off, len);
	} 
 
	public void flushImpl(int p1, int p2) throws IOException {
	    buffer.force();
	} 
 
	public void disposeImpl() { 
	    buffer = null;
	} 
 
    } 
 
}