public void mark(int readLimit) throws IOException {if (readLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();markpos = pos;}}
public override void mark(int readLimit){if (readLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();markpos = pos;}}