The part of NIO Buffer source code is as follows:
public abstract class Buffer {
private int mark = -1;
private int position = 0;
private int limit;
private int capacity;
...
}
I want to know what is the mark exactly used for. There is no comment related to that in the JDK source code.