Underlying stream is NOT owned by the generator constructed, so that generator will NOT close the output stream when {@link JsonGenerator#close} is called (unless auto-closingfeature, {@link com.fasterxml.jackson.core.JsonGenerator.Feature#AUTO_CLOSE_TARGET}is enabled). Using application needs to close it explicitly if this is the case.
Note: there are formats that use fixed encoding (like most binary data formats) and that ignore passed in encoding. @param out OutputStream to use for writing JSON content @param enc Character encoding to use @deprecated Since 2.2, use {@link #createGenerator(OutputStream,JsonEncoding)} instead.
Underlying stream is NOT owned by the generator constructed, so that generator will NOT close the output stream when {@link JsonGenerator#close} is called (unless auto-closingfeature, {@link org.codehaus.jackson.JsonGenerator.Feature#AUTO_CLOSE_TARGET}is enabled). Using application needs to close it explicitly if this is the case.
Note: there are formats that use fixed encoding (like most binary data formats) and that ignore passed in encoding. @param out OutputStream to use for writing JSON content @param enc Character encoding to use
|
|
|
|