@Override protected void doClose() throws IOException { byte[] buf = inputBuffer; if (buf != null) { inputBuffer = null; recycler.releaseInputBuffer(buf); } buf = uncompressed; if (buf != null) { uncompressed = null; recycler.releaseDecodeBuffer(uncompressed); } } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; super.close(); } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; _inputStream.close(); } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; super.close(); } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; super.close(); } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; _inputStream.close(); } }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _inputBuffer; if (buf != null) { _inputBuffer = null; _recycler.releaseInputBuffer(buf); } buf = _decodedBytes; if (buf != null) { _decodedBytes = null; _recycler.releaseDecodeBuffer(buf); } if (!_inputStreamClosed) { _inputStreamClosed = true; _inputStream.close(); } }
@Override public void close() throws IOException { _state = State.GZIP_COMPLETE; if (_rawInput != null) { _rawInput.close(); _rawInput = null; } byte[] b = _buffer; if (b != null) { _buffer = null; _bufferRecycler.releaseInputBuffer(b); } b = _tmpBuffer; if (b != null) { _tmpBuffer = null; _bufferRecycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } }
@Override public void close() throws IOException { _state = State.GZIP_COMPLETE; if (_rawInput != null) { _rawInput.close(); _rawInput = null; } byte[] b = _buffer; if (b != null) { _buffer = null; _bufferRecycler.releaseInputBuffer(b); } b = _tmpBuffer; if (b != null) { _tmpBuffer = null; _bufferRecycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } }
@Override public void close() throws IOException { _state = State.GZIP_COMPLETE; if (_rawInput != null) { _rawInput.close(); _rawInput = null; } byte[] b = _buffer; if (b != null) { _buffer = null; _bufferRecycler.releaseInputBuffer(b); } b = _tmpBuffer; if (b != null) { _tmpBuffer = null; _bufferRecycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } }
@Override public void complete() throws IOException { byte[] b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state >= STATE_TRAILER_INITIAL) { if (_state == STATE_BODY) { throw new GZIPException("Invalid GZIP stream: end-of-input in the middle of compressed data"); } throw new GZIPException("Invalid GZIP stream: end-of-input in the trailer (state: "+_state+")"); } throw new GZIPException("Invalid GZIP stream: end-of-input in header (state: "+_state+")"); } } }
@Override public void complete() throws IOException { byte[] b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state >= STATE_TRAILER_INITIAL) { if (_state == STATE_BODY) { throw new GZIPException("Invalid GZIP stream: end-of-input in the middle of compressed data"); } throw new GZIPException("Invalid GZIP stream: end-of-input in the trailer (state: "+_state+")"); } throw new GZIPException("Invalid GZIP stream: end-of-input in header (state: "+_state+")"); } } }
@Override public void complete() throws IOException { byte[] b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } Inflater i = _inflater; if (i != null) { _inflater = null; _gzipRecycler.releaseInflater(i); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state >= STATE_TRAILER_INITIAL) { if (_state == STATE_BODY) { throw new GZIPException("Invalid GZIP stream: end-of-input in the middle of compressed data"); } throw new GZIPException("Invalid GZIP stream: end-of-input in the trailer (state: "+_state+")"); } throw new GZIPException("Invalid GZIP stream: end-of-input in header (state: "+_state+")"); } } }
@Override public void complete() throws IOException { byte[] b = _inputBuffer; if (b != null) { _inputBuffer = null; _recycler.releaseInputBuffer(b); } b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state == STATE_HEADER_COMPRESSED_BUFFERING) { throw new LZFException("Incomplete compressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_compressedLength); } if (_state == STATE_HEADER_UNCOMPRESSED_STREAMING) { throw new LZFException("Incomplete uncompressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_uncompressedLength); } throw new LZFException("Incomplete LZF block; decoding state = "+_state); } } }
@Override public void complete() throws IOException { byte[] b = _inputBuffer; if (b != null) { _inputBuffer = null; _recycler.releaseInputBuffer(b); } b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state == STATE_HEADER_COMPRESSED_BUFFERING) { throw new LZFException("Incomplete compressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_compressedLength); } if (_state == STATE_HEADER_UNCOMPRESSED_STREAMING) { throw new LZFException("Incomplete uncompressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_uncompressedLength); } throw new LZFException("Incomplete LZF block; decoding state = "+_state); } } }
@Override public void complete() throws IOException { byte[] b = _inputBuffer; if (b != null) { _inputBuffer = null; _recycler.releaseInputBuffer(b); } b = _decodeBuffer; if (b != null) { _decodeBuffer = null; _recycler.releaseDecodeBuffer(b); } // 24-May-2012, tatu: Should we call this here; or fail with exception? _handler.allDataHandled(); if (!_terminated) { if (_state != STATE_INITIAL) { if (_state == STATE_HEADER_COMPRESSED_BUFFERING) { throw new LZFException("Incomplete compressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_compressedLength); } if (_state == STATE_HEADER_UNCOMPRESSED_STREAMING) { throw new LZFException("Incomplete uncompressed LZF block; only got "+_bytesReadFromBlock +" bytes, needed "+_uncompressedLength); } throw new LZFException("Incomplete LZF block; decoding state = "+_state); } } }