Code example for Buffer

Methods: capacity, limit, position

0
		println(charBuffer);
	} 
 
	// Print info about a buffer 
	private static void println(Buffer buffer) {
		System.out.println(buffer+" pos=" + buffer.position() + ", limit="
				+ buffer.limit() + ", capacity=" + buffer.capacity());
		 
//		while(buffer.hasRemaining()){ 
//			System.out.println(buffer.toString()); 
//		} 
 
	} 
}