INNER CODE UNIT · Java

_closeInput

michel-kraemer/bson4jackson · src/main/java/de/undercouch/bson4jackson/BsonGenerator.java:277

    protected void _closeInput() throws IOException {
        // finish document
        if (isEnabled(StreamWriteFeature.AUTO_CLOSE_CONTENT)) {
            while (_currentDocument != null) {
                writeEndObject();
            }
        }

        // write buffer to output stream (if streaming is enabled,
        // this will write the rest of the buffer)
        _buffer.writeTo(_out);
        _buffer.clear();
        _out.flush();

        if (isEnabled(StreamWriteFeature.AUTO_CLOSE_TARGET)) {
            _out.close();
        }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…