/** * Method to close once encoder is no longer in use. Note: after calling * this method, further calls to {@link #encodeChunk} will fail */ @Override public final void close() { byte[] buf = _encodeBuffer; if (buf != null) { _encodeBuffer = null; _recycler.releaseEncodeBuffer(buf); } int[] ibuf = _hashTable; if (ibuf != null) { _hashTable = null; _recycler.releaseEncodingHash(ibuf); } } /**
/** * Method to close once encoder is no longer in use. Note: after calling * this method, further calls to {@link #encodeChunk} will fail */ @Override public final void close() { byte[] buf = _encodeBuffer; if (buf != null) { _encodeBuffer = null; _recycler.releaseEncodeBuffer(buf); } int[] ibuf = _hashTable; if (ibuf != null) { _hashTable = null; _recycler.releaseEncodingHash(ibuf); } } /**
/** * Method to close once encoder is no longer in use. Note: after calling * this method, further calls to {@link #encodeChunk} will fail */ @Override public final void close() { byte[] buf = _encodeBuffer; if (buf != null) { _encodeBuffer = null; _recycler.releaseEncodeBuffer(buf); } int[] ibuf = _hashTable; if (ibuf != null) { _hashTable = null; _recycler.releaseEncodingHash(ibuf); } } /**
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _encodedBytes; if (buf != null) { _encodedBytes = null; _recycler.releaseEncodeBuffer(buf); } if (_encoder != null) { _encoder.close(); } _closeInput(); }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _encodedBytes; if (buf != null) { _encodedBytes = null; _recycler.releaseEncodeBuffer(buf); } if (_encoder != null) { _encoder.close(); } _closeInput(); }
@Override public void close() throws IOException { _bufferPosition = _bufferLength = 0; byte[] buf = _encodedBytes; if (buf != null) { _encodedBytes = null; _recycler.releaseEncodeBuffer(buf); } if (_encoder != null) { _encoder.close(); } _closeInput(); }