@Override public int read() throws IOException { ensure(); int c = input.read(); if (c >= 0) { expected++; } return c; }
@Override public int read() throws IOException { ensure(); int c = input.read(); if (c >= 0) { expected++; } return c; }
@Override public long skip(long c) throws IOException { ensure(); long r = input.skip(c); if (r > 0) { expected += r; } return r; }
@Override public long skip(long c) throws IOException { ensure(); long r = input.skip(c); if (r > 0) { expected += r; } return r; }
@Override public int read(byte[] buf, int ofs, int len) throws IOException { ensure(); int r = input.read(buf, ofs, len); if (r > 0) { expected += r; } return r; }
@Override public int read() throws IOException { ensure(); int c = input.read(); if (c >= 0) { expected++; } return c; }
@Override public int read(byte[] buf) throws IOException { ensure(); int r = input.read(buf); if (r > 0) { expected += r; } return r; }
@Override public int read(byte[] buf) throws IOException { ensure(); int r = input.read(buf); if (r > 0) { expected += r; } return r; }
@Override public int read(byte[] buf, int ofs, int len) throws IOException { ensure(); int r = input.read(buf, ofs, len); if (r > 0) { expected += r; } return r; }
@Override public int read(byte[] buf) throws IOException { ensure(); int r = input.read(buf); if (r > 0) { expected += r; } return r; }
@Override public int read(byte[] buf, int ofs, int len) throws IOException { ensure(); int r = input.read(buf, ofs, len); if (r > 0) { expected += r; } return r; }
@Override public long skip(long c) throws IOException { ensure(); long r = input.skip(c); if (r > 0) { expected += r; } return r; }