Methods Summary |
---|
public int | currentPosition()Return the current position in the receiver
return currentPosition;
|
public int | read()
int read = in.read();
if (read >= 0) {
currentPosition++;
}
return read;
|
public int | read(byte[] b, int off, int len)
int read = in.read(b, off, len);
if (read >= 0) {
currentPosition += read;
}
return read;
|
public void | resetCurrentPosition()Makes the current position on the underlying stream be assigned relative
position zero.
currentPosition = 0;
|
public long | skip(long n)
long skip = in.skip(n);
currentPosition += skip; // Maybe currentPosition should be long ?
return skip;
|