public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public long skip(long n) throws IOException { long count = 0L; if (mData != null) { int amount = mEnd - mPtr; if (amount > n) { // all in pushed back segment? mPtr += (int) n; return n; } freeMergedBuffer(); count += amount; n -= amount; } if (n > 0) { count += mIn.skip(n); } return count; }
public int read(byte[] b, int off, int len) throws IOException { if (mData != null) { int avail = mEnd - mPtr; if (len > avail) { len = avail; } System.arraycopy(mData, mPtr, b, off, len); mPtr += len; if (mPtr >= mEnd) { freeMergedBuffer(); } return len; } return mIn.read(b, off, len); }
@Override public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
@Override public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
@Override public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
@Override public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
@Override public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
public void close() throws IOException { freeMergedBuffer(); mIn.close(); }
public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
@Override public int read() throws IOException { if (mData != null) { int c = mData[mPtr++] & 0xFF; if (mPtr >= mEnd) { freeMergedBuffer(); } return c; } return mIn.read(); }
public int read(byte[] b, int off, int len) throws IOException { if (mData != null) { int avail = mEnd - mPtr; if (len > avail) { len = avail; } System.arraycopy(mData, mPtr, b, off, len); mPtr += len; if (mPtr >= mEnd) { freeMergedBuffer(); } return len; } return mIn.read(b, off, len); }
public int read(byte[] b, int off, int len) throws IOException { if (mData != null) { int avail = mEnd - mPtr; if (len > avail) { len = avail; } System.arraycopy(mData, mPtr, b, off, len); mPtr += len; if (mPtr >= mEnd) { freeMergedBuffer(); } return len; } return mIn.read(b, off, len); }