Code example for ByteBuffer

Methods: rewind

0
	} 
	 
	@Override 
	public void reset() throws IOException { 
		if (buf != null) {
			buf.rewind();
		} 
	} 
		 
	public ByteBuffer getBuffer() throws IOException {
		if (!ensureBytes()) { 
			return null; 
		} 
		return buf;
	} 
	 
}