Method for constructing JSON generator for writing JSON content using specified output stream. Encoding to use must be specified, and needs to be one of available types (as per JSON specification).
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.