@Override public int read() throws IOException { try { final int ret = in.read(); count(ret == -1 ? -1 : 1); return ret; } catch (org.tukaani.xz.MemoryLimitException e) { throw new MemoryLimitException(e.getMemoryNeeded(), e.getMemoryLimit(), e); } }
@Override public int read(final byte[] buf, final int off, final int len) throws IOException { try { final int ret = in.read(buf, off, len); count(ret); return ret; } catch (org.tukaani.xz.MemoryLimitException e) { //convert to commons-compress MemoryLimtException throw new MemoryLimitException(e.getMemoryNeeded(), e.getMemoryLimit(), e); } }
@Override public int read(final byte[] buf, final int off, final int len) throws IOException { try { final int ret = in.read(buf, off, len); count(ret); return ret; } catch (org.tukaani.xz.MemoryLimitException e) { //convert to commons-compress MemoryLimtException throw new MemoryLimitException(e.getMemoryNeeded(), e.getMemoryLimit(), e); } }
@Override public int read() throws IOException { try { final int ret = in.read(); count(ret == -1 ? -1 : 1); return ret; } catch (org.tukaani.xz.MemoryLimitException e) { throw new MemoryLimitException(e.getMemoryNeeded(), e.getMemoryLimit(), e); } }