LwHttp: add Buffer.skip()
This commit is contained in:
parent
3c133af4df
commit
984a17ef35
@ -137,6 +137,12 @@ public class LwHttp {
|
|||||||
super.mark(readlimit);
|
super.mark(readlimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized long skip(long n) throws IOException {
|
||||||
|
sumRead += n;
|
||||||
|
return super.skip(n);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void reset() throws IOException {
|
public synchronized void reset() throws IOException {
|
||||||
if (marked >= 0)
|
if (marked >= 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user