Code example for ByteBuffer

Methods: remainingget

	public int read(byte b[], int off, int len) throws IOException
		int remaining = buffer.remaining();
		len= len <= remaining ? len : remaining;
		buffer.get(b, off, len);
		return len;
	public boolean markSupported() { return true; } 
	public void mark(int readAheadLimit)
		mark = buffer.position();
	public void reset() 
Connect your IDE to all the code out there  Get Codota for Java