public synchronized long skip(long charCount) {if (charCount <= 0) {return 0;}int numskipped;if (this.count - pos < charCount) {numskipped = this.count - pos;pos = this.count;} else {numskipped = (int) charCount;pos += charCount;}return numskipped;}
public override long skip(long charCount){lock (this){if (charCount <= 0){return 0;}int numskipped;if (this.count - pos < charCount){numskipped = this.count - pos;pos = this.count;}else{numskipped = (int)charCount;pos += (int)(charCount);}return numskipped;}}