@Deprecated public final class JacksonFactory extends JsonFactory
Implementation is thread-safe. For maximum efficiency, applications should use a single globally-shared instance of the JSON factory.
Constructor and Description |
---|
JacksonFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JsonGenerator |
createJsonGenerator(OutputStream out,
Charset enc)
Deprecated.
Returns a new instance of a low-level JSON serializer for the given output stream and encoding.
|
JsonGenerator |
createJsonGenerator(Writer writer)
Deprecated.
Returns a new instance of a low-level JSON serializer for the given writer.
|
JsonParser |
createJsonParser(InputStream in)
Deprecated.
Returns a new instance of a low-level JSON parser for the given input stream.
|
JsonParser |
createJsonParser(InputStream in,
Charset charset)
Deprecated.
Returns a new instance of a low-level JSON parser for the given input stream.
|
JsonParser |
createJsonParser(Reader reader)
Deprecated.
Returns a new instance of a low-level JSON parser for the given reader.
|
JsonParser |
createJsonParser(String value)
Deprecated.
Returns a new instance of a low-level JSON parser for the given string value.
|
static JacksonFactory |
getDefaultInstance()
Deprecated.
Returns a global thread-safe instance.
|
createJsonObjectParser, fromInputStream, fromInputStream, fromReader, fromString, toByteArray, toPrettyString, toString
public static JacksonFactory getDefaultInstance()
public JsonGenerator createJsonGenerator(OutputStream out, Charset enc) throws IOException
JsonFactory
createJsonGenerator
in class JsonFactory
out
- output streamenc
- encodingIOException
public JsonGenerator createJsonGenerator(Writer writer) throws IOException
JsonFactory
createJsonGenerator
in class JsonFactory
writer
- writerIOException
public JsonParser createJsonParser(Reader reader) throws IOException
JsonFactory
createJsonParser
in class JsonFactory
reader
- readerIOException
public JsonParser createJsonParser(InputStream in) throws IOException
JsonFactory
createJsonParser
in class JsonFactory
in
- input streamIOException
public JsonParser createJsonParser(InputStream in, Charset charset) throws IOException
JsonFactory
createJsonParser
in class JsonFactory
in
- input streamcharset
- charset in which the input stream is encoded or null
to let the parser
detect the charsetIOException
public JsonParser createJsonParser(String value) throws IOException
JsonFactory
createJsonParser
in class JsonFactory
value
- string valueIOException
Copyright © 2011–2022 Google. All rights reserved.