@Override public int available() { return remainingBytes(); }
@Override public long skip(final long n) { long start = pos; long skip = Math.min(remainingBytes(), n); if ((((pos + skip) ^ start) & ~getChunkMask()) != 0) { chunkIsValid = false; } pos += skip; return skip; }
private int read(byte[] b, int off, int len, boolean readPlain) throws IOException { int total = 0; if (remainingBytes() <= 0) { return -1; int avail = remainingBytes(); if (avail == 0) { return total;
@Override public int available() { return remainingBytes(); }
@Override public long skip(final long n) { long start = pos; long skip = Math.min(remainingBytes(), n); if ((((pos + skip) ^ start) & ~getChunkMask()) != 0) { chunkIsValid = false; } pos += skip; return skip; }
private int read(byte[] b, int off, int len, boolean readPlain) throws IOException { int total = 0; if (remainingBytes() <= 0) { return -1; int avail = remainingBytes(); if (avail == 0) { return total;