public final void close() throws IOException { if (closed) { return; } doClose(); if (br != null) { br.close(); br = null; } else if (is != null) { is.close(); } br = null; is = null; closed = true; }
public final void close() throws IOException { if (closed) { return; } doClose(); if (br != null) { br.close(); br = null; } else if (is != null) { is.close(); } br = null; is = null; closed = true; }
public final void close() throws IOException { if (closed) { return; } doClose(); if (br != null) { br.close(); br = null; } else if (is != null) { is.close(); } br = null; is = null; closed = true; }
public void seekWithMaxRead(long offset, boolean gzip, int maxLength) throws IOException { if (closed) { throw new IOException("Seek after close()"); } br = null; try { is = doSeekLoad(offset, maxLength); if (bufferFully && (maxLength > 0)) { byte[] buffer = new byte[maxLength]; ByteStreams.readFully(is, buffer); doClose(); is = new ByteArrayInputStream(buffer); } if (gzip) { is = new GZIPMembersInputStream(is, blockSize); } } catch (IOException io) { doClose(); throw io; } }
public void seekWithMaxRead(long offset, boolean gzip, int maxLength) throws IOException { if (closed) { throw new IOException("Seek after close()"); } br = null; try { is = doSeekLoad(offset, maxLength); if (bufferFully && (maxLength > 0)) { byte[] buffer = new byte[maxLength]; ByteStreams.readFully(is, buffer); doClose(); is = new ByteArrayInputStream(buffer); } if (gzip) { is = new GZIPMembersInputStream(is, blockSize); } } catch (IOException io) { doClose(); throw io; } }
public void seekWithMaxRead(long offset, boolean gzip, int maxLength) throws IOException { if (closed) { throw new IOException("Seek after close()"); } br = null; try { is = doSeekLoad(offset, maxLength); if (bufferFully && (maxLength > 0)) { byte[] buffer = new byte[maxLength]; ByteStreams.readFully(is, buffer); doClose(); is = new ByteArrayInputStream(buffer); } if (gzip) { is = new GZIPMembersInputStream(is, blockSize); } } catch (IOException io) { doClose(); throw io; } }