List of usage examples for java.nio Buffer limit
int limit
To view the source code for java.nio Buffer limit.
Click Source Link
limit - 1
is the last element that can be read or written. From source file:Main.java
private static void println(Buffer buffer) { System.out.println("pos=" + buffer.position() + ", limit=" + buffer.limit() + ", capacity=" + buffer.capacity() + ": '" + buffer.toString() + "'"); }