@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); } } }