@Override public void close() throws IOException { super.close(); // Merge found symbols, if any: _symbols.release(); }
@Override public void close() throws IOException { super.close(); // Merge found symbols, if any: _symbols.release(); }
/** * Method called to release internal buffers owned by the base * reader. This may be called along with {@link #_closeInput} (for * example, when explicitly closing this reader instance), or * separately (if need be). */ @Override protected void _releaseBuffers() throws IOException { super._releaseBuffers(); // Merge found symbols, if any: _symbols.release(); if (_bufferRecyclable) { byte[] buf = _inputBuffer; if (buf != null) { /* 21-Nov-2014, tatu: Let's not set it to null; this way should * get slightly more meaningful error messages in case someone * closes parser indirectly, without realizing. */ _inputBuffer = ByteArrayBuilder.NO_BYTES; _ioContext.releaseReadIOBuffer(buf); } } }
/** * Method called to release internal buffers owned by the base * reader. This may be called along with {@link #_closeInput} (for * example, when explicitly closing this reader instance), or * separately (if need be). */ @Override protected void _releaseBuffers() throws IOException { super._releaseBuffers(); // Merge found symbols, if any: _symbols.release(); if (_bufferRecyclable) { byte[] buf = _inputBuffer; if (buf != null) { /* 21-Nov-2014, tatu: Let's not set it to null; this way should * get slightly more meaningful error messages in case someone * closes parser indirectly, without realizing. */ _inputBuffer = ByteArrayBuilder.NO_BYTES; _ioContext.releaseReadIOBuffer(buf); } } }