<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:20 PDT 2013 --> <title>JsonFactory (Jackson JSON Processor)</title> <meta name="date" content="2013-07-14"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="JsonFactory (Jackson JSON Processor)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JsonFactory.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> <li><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/codehaus/jackson/JsonFactory.html" target="_top">Frames</a></li> <li><a href="JsonFactory.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.codehaus.jackson</div> <h2 title="Class JsonFactory" class="title">Class JsonFactory</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li>org.codehaus.jackson.JsonFactory</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></dd> </dl> <dl> <dt>Direct Known Subclasses:</dt> <dd><a href="../../../org/codehaus/jackson/map/MappingJsonFactory.html" title="class in org.codehaus.jackson.map">MappingJsonFactory</a>, <a href="../../../org/codehaus/jackson/smile/SmileFactory.html" title="class in org.codehaus.jackson.smile">SmileFactory</a></dd> </dl> <hr> <br> <pre>public class <span class="strong">JsonFactory</span> extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> implements <a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></pre> <div class="block">The main factory class of Jackson package, used to configure and construct reader (aka parser, <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a>) and writer (aka generator, <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>) instances. <p> Factory instances are thread-safe and reusable after configuration (if any). Typically applications and services use only a single globally shared factory instance, unless they need differently configured factories. Factory reuse is important if efficiency matters; most recycling of expensive construct is done on per-factory basis. <p> Creation of a factory instance is a light-weight operation, and since there is no need for pluggable alternative implementations (as there is no "standard" JSON processor API to implement), the default constructor is used for constructing factory instances.</div> <dl><dt><span class="strong">Author:</span></dt> <dd>Tatu Saloranta</dd></dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field_summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_characterEscapes">_characterEscapes</a></strong></code> <div class="block">Definition of custom character escapes to use for generators created by this factory, if any.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected int</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_generatorFeatures">_generatorFeatures</a></strong></code> <div class="block">Currently enabled generator features.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_inputDecorator">_inputDecorator</a></strong></code> <div class="block">Optional helper object that may decorate input sources, to do additional processing on input during parsing.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_objectCodec">_objectCodec</a></strong></code> <div class="block">Object that implements conversion functionality between Java objects and JSON content.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_outputDecorator">_outputDecorator</a></strong></code> <div class="block">Optional helper object that may decorate output object, to do additional processing on output during content generation.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected int</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_parserFeatures">_parserFeatures</a></strong></code> <div class="block">Currently enabled parser features.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html?is-external=true" title="class or interface in java.lang">ThreadLocal</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref">SoftReference</a><<a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>>></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_recyclerRef">_recyclerRef</a></strong></code> <div class="block">This <code>ThreadLocal</code> contains a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref"><code>SoftReference</code></a> to a <a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util"><code>BufferRecycler</code></a> used to provide a low-cost buffer recycling between reader and writer instances.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/sym/BytesToNameCanonicalizer.html" title="class in org.codehaus.jackson.sym">BytesToNameCanonicalizer</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_rootByteSymbols">_rootByteSymbols</a></strong></code> <div class="block">Alternative to the basic symbol table, some stream-based parsers use different name canonicalization method.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/sym/CharsToNameCanonicalizer.html" title="class in org.codehaus.jackson.sym">CharsToNameCanonicalizer</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_rootCharSymbols">_rootCharSymbols</a></strong></code> <div class="block">Each factory comes equipped with a shared root symbol table.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#FORMAT_NAME_JSON">FORMAT_NAME_JSON</a></strong></code> <div class="block">Name used to identify JSON format (and returned by <a href="../../../org/codehaus/jackson/JsonFactory.html#getFormatName()"><code>getFormatName()</code></a></div> </td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#JsonFactory()">JsonFactory</a></strong>()</code> <div class="block">Default constructor used to create factory instances.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#JsonFactory(org.codehaus.jackson.ObjectCodec)">JsonFactory</a></strong>(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createContext(java.lang.Object, boolean)">_createContext</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> srcRef, boolean resourceManaged)</code> <div class="block">Overridable factory method that actually instantiates desired context object.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createJsonGenerator(java.io.Writer, org.codehaus.jackson.io.IOContext)">_createJsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> out, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> <div class="block">Overridable factory method that actually instantiates generator for given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><code>Writer</code></a> and context object.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createJsonParser(byte[], int, int, org.codehaus.jackson.io.IOContext)">_createJsonParser</a></strong>(byte[] data, int offset, int len, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> <div class="block">Overridable factory method that actually instantiates parser using given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a> object for reading content passed as raw byte array.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createJsonParser(java.io.InputStream, org.codehaus.jackson.io.IOContext)">_createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> <div class="block">Overridable factory method that actually instantiates desired parser given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> and context object.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createJsonParser(java.io.Reader, org.codehaus.jackson.io.IOContext)">_createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> <div class="block">Overridable factory method that actually instantiates parser using given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a> object for reading content.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createUTF8JsonGenerator(java.io.OutputStream, org.codehaus.jackson.io.IOContext)">_createUTF8JsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> <div class="block">Overridable factory method that actually instantiates generator for given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a> and context object, using UTF-8 encoding.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_createWriter(java.io.OutputStream, org.codehaus.jackson.JsonEncoding, org.codehaus.jackson.io.IOContext)">_createWriter</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_getBufferRecycler()">_getBufferRecycler</a></strong>()</code> <div class="block">Method used by factory to create buffer recycler instances for parsers and generators.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#_optimizedStreamFromURL(java.net.URL)">_optimizedStreamFromURL</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</code> <div class="block">Helper methods used for constructing an optimal stream for parsers to use, when input is to be read from an URL.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)">configure</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, boolean state)</code> <div class="block">Method for enabling or disabling specified generator feature (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)">configure</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, boolean state)</code> <div class="block">Method for enabling or disabling specified parser feature (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonGenerator(java.io.File, org.codehaus.jackson.JsonEncoding)">createJsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc)</code> <div class="block">Method for constructing JSON generator for writing JSON content to specified file, overwriting contents it might have (or creating it if such file does not yet exist).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonGenerator(java.io.OutputStream)">createJsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out)</code> <div class="block">Convenience method for constructing generator that uses default encoding of the format (UTF-8 for JSON and most other data formats).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonGenerator(java.io.OutputStream, org.codehaus.jackson.JsonEncoding)">createJsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc)</code> <div class="block">Method for constructing JSON generator for writing JSON content using specified output stream.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonGenerator(java.io.Writer)">createJsonGenerator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> out)</code> <div class="block">Method for constructing JSON generator for writing JSON content using specified Writer.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(byte[])">createJsonParser</a></strong>(byte[] data)</code> <div class="block">Method for constructing parser for parsing the contents of given byte array.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(byte[], int, int)">createJsonParser</a></strong>(byte[] data, int offset, int len)</code> <div class="block">Method for constructing parser for parsing the contents of given byte array.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(java.io.File)">createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</code> <div class="block">Method for constructing JSON parser instance to parse contents of specified file.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(java.io.InputStream)">createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in)</code> <div class="block">Method for constructing JSON parser instance to parse the contents accessed via specified input stream.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(java.io.Reader)">createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r)</code> <div class="block">Method for constructing parser for parsing the contents accessed via specified Reader.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(java.lang.String)">createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> content)</code> <div class="block">Method for constructing parser for parsing contens of given String.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#createJsonParser(java.net.URL)">createJsonParser</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url)</code> <div class="block">Method for constructing JSON parser instance to parse contents of resource reference by given URL.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">disable</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block">Method for disabling specified generator feature (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonParser.Feature)">disable</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block">Method for disabling specified parser features (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#disableGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature)">disableGeneratorFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(JsonGenerator.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#disableParserFeature(org.codehaus.jackson.JsonParser.Feature)">disableParserFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonParser.Feature)"><code>disable(JsonParser.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">enable</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block">Method for enabling specified generator features (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonParser.Feature)">enable</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block">Method for enabling specified parser feature (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#enableGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature)">enableGeneratorFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(JsonGenerator.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#enableParserFeature(org.codehaus.jackson.JsonParser.Feature)">enableParserFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonParser.Feature)"><code>enable(JsonParser.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#getCharacterEscapes()">getCharacterEscapes</a></strong>()</code> <div class="block">Method for accessing custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s it creates.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#getCodec()">getCodec</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#getFormatName()">getFormatName</a></strong>()</code> <div class="block">Method that returns short textual id identifying format this factory supports.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#getInputDecorator()">getInputDecorator</a></strong>()</code> <div class="block">Method for getting currently configured input decorator (if any; there is no default decorator).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#getOutputDecorator()">getOutputDecorator</a></strong>()</code> <div class="block">Method for getting currently configured output decorator (if any; there is no default decorator).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/format/MatchStrength.html" title="enum in org.codehaus.jackson.format">MatchStrength</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#hasFormat(org.codehaus.jackson.format.InputAccessor)">hasFormat</a></strong>(<a href="../../../org/codehaus/jackson/format/InputAccessor.html" title="interface in org.codehaus.jackson.format">InputAccessor</a> acc)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../org/codehaus/jackson/format/MatchStrength.html" title="enum in org.codehaus.jackson.format">MatchStrength</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#hasJSONFormat(org.codehaus.jackson.format.InputAccessor)">hasJSONFormat</a></strong>(<a href="../../../org/codehaus/jackson/format/InputAccessor.html" title="interface in org.codehaus.jackson.format">InputAccessor</a> acc)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block">Check whether specified generator feature is enabled.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)">isEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block">Checked whether specified parser feature is enabled.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#isGeneratorFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isGeneratorFeatureEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(JsonGenerator.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#isParserFeatureEnabled(org.codehaus.jackson.JsonParser.Feature)">isParserFeatureEnabled</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)"><code>isEnabled(JsonParser.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)">setCharacterEscapes</a></strong>(<a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> esc)</code> <div class="block">Method for defining custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s it creates.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></strong>(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</code> <div class="block">Method for associating a <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> (typically a <a href="../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a>) with this factory (and more importantly, parsers and generators it constructs).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)">setGeneratorFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, boolean state)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(JsonGenerator.Feature, boolean)</code></a> instead</i></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setInputDecorator(org.codehaus.jackson.io.InputDecorator)">setInputDecorator</a></strong>(<a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a> d)</code> <div class="block">Method for overriding currently configured input decorator</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setOutputDecorator(org.codehaus.jackson.io.OutputDecorator)">setOutputDecorator</a></strong>(<a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a> d)</code> <div class="block">Method for overriding currently configured output decorator</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#setParserFeature(org.codehaus.jackson.JsonParser.Feature, boolean)">setParserFeature</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, boolean state)</code> <div class="block"><strong>Deprecated.</strong> <div class="block"><i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)"><code>configure(JsonParser.Feature, boolean)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonFactory.html#version()">version</a></strong>()</code> <div class="block">Method called to detect version of the component that implements this interface; returned version should never be null, but may return specific "not available" instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field_detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="FORMAT_NAME_JSON"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>FORMAT_NAME_JSON</h4> <pre>public static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> FORMAT_NAME_JSON</pre> <div class="block">Name used to identify JSON format (and returned by <a href="../../../org/codehaus/jackson/JsonFactory.html#getFormatName()"><code>getFormatName()</code></a></div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#org.codehaus.jackson.JsonFactory.FORMAT_NAME_JSON">Constant Field Values</a></dd></dl> </li> </ul> <a name="_recyclerRef"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_recyclerRef</h4> <pre>protected static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html?is-external=true" title="class or interface in java.lang">ThreadLocal</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref">SoftReference</a><<a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>>> _recyclerRef</pre> <div class="block">This <code>ThreadLocal</code> contains a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref"><code>SoftReference</code></a> to a <a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util"><code>BufferRecycler</code></a> used to provide a low-cost buffer recycling between reader and writer instances.</div> </li> </ul> <a name="_rootCharSymbols"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_rootCharSymbols</h4> <pre>protected <a href="../../../org/codehaus/jackson/sym/CharsToNameCanonicalizer.html" title="class in org.codehaus.jackson.sym">CharsToNameCanonicalizer</a> _rootCharSymbols</pre> <div class="block">Each factory comes equipped with a shared root symbol table. It should not be linked back to the original blueprint, to avoid contents from leaking between factories.</div> </li> </ul> <a name="_rootByteSymbols"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_rootByteSymbols</h4> <pre>protected <a href="../../../org/codehaus/jackson/sym/BytesToNameCanonicalizer.html" title="class in org.codehaus.jackson.sym">BytesToNameCanonicalizer</a> _rootByteSymbols</pre> <div class="block">Alternative to the basic symbol table, some stream-based parsers use different name canonicalization method. <p> TODO: should clean up this; looks messy having 2 alternatives with not very clear differences.</div> </li> </ul> <a name="_objectCodec"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_objectCodec</h4> <pre>protected <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> _objectCodec</pre> <div class="block">Object that implements conversion functionality between Java objects and JSON content. For base JsonFactory implementation usually not set by default, but can be explicitly set. Sub-classes (like @link org.codehaus.jackson.map.MappingJsonFactory} usually provide an implementation.</div> </li> </ul> <a name="_parserFeatures"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_parserFeatures</h4> <pre>protected int _parserFeatures</pre> <div class="block">Currently enabled parser features.</div> </li> </ul> <a name="_generatorFeatures"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_generatorFeatures</h4> <pre>protected int _generatorFeatures</pre> <div class="block">Currently enabled generator features.</div> </li> </ul> <a name="_characterEscapes"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_characterEscapes</h4> <pre>protected <a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> _characterEscapes</pre> <div class="block">Definition of custom character escapes to use for generators created by this factory, if any. If null, standard data format specific escapes are used.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="_inputDecorator"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_inputDecorator</h4> <pre>protected <a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a> _inputDecorator</pre> <div class="block">Optional helper object that may decorate input sources, to do additional processing on input during parsing.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="_outputDecorator"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_outputDecorator</h4> <pre>protected <a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a> _outputDecorator</pre> <div class="block">Optional helper object that may decorate output object, to do additional processing on output during content generation.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="JsonFactory()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>JsonFactory</h4> <pre>public JsonFactory()</pre> <div class="block">Default constructor used to create factory instances. Creation of a factory instance is a light-weight operation, but it is still a good idea to reuse limited number of factory instances (and quite often just a single instance): factories are used as context for storing some reused processing objects (such as symbol tables parsers use) and this reuse only works within context of a single factory instance.</div> </li> </ul> <a name="JsonFactory(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>JsonFactory</h4> <pre>public JsonFactory(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getFormatName()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getFormatName</h4> <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getFormatName()</pre> <div class="block">Method that returns short textual id identifying format this factory supports. <p> Note: sub-classes should override this method; default implementation will return null for all sub-classes</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="hasFormat(org.codehaus.jackson.format.InputAccessor)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasFormat</h4> <pre>public <a href="../../../org/codehaus/jackson/format/MatchStrength.html" title="enum in org.codehaus.jackson.format">MatchStrength</a> hasFormat(<a href="../../../org/codehaus/jackson/format/InputAccessor.html" title="interface in org.codehaus.jackson.format">InputAccessor</a> acc) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="hasJSONFormat(org.codehaus.jackson.format.InputAccessor)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasJSONFormat</h4> <pre>protected <a href="../../../org/codehaus/jackson/format/MatchStrength.html" title="enum in org.codehaus.jackson.format">MatchStrength</a> hasJSONFormat(<a href="../../../org/codehaus/jackson/format/InputAccessor.html" title="interface in org.codehaus.jackson.format">InputAccessor</a> acc) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="version()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>version</h4> <pre>public <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson">Version</a> version()</pre> <div class="block"><strong>Description copied from interface: <code><a href="../../../org/codehaus/jackson/Versioned.html#version()">Versioned</a></code></strong></div> <div class="block">Method called to detect version of the component that implements this interface; returned version should never be null, but may return specific "not available" instance (see <a href="../../../org/codehaus/jackson/Version.html" title="class in org.codehaus.jackson"><code>Version</code></a> for details).</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../org/codehaus/jackson/Versioned.html#version()">version</a></code> in interface <code><a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></code></dd> </dl> </li> </ul> <a name="configure(org.codehaus.jackson.JsonParser.Feature, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>configure</h4> <pre>public final <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> configure(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, boolean state)</pre> <div class="block">Method for enabling or disabling specified parser feature (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="enable(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enable</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> enable(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block">Method for enabling specified parser feature (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="disable(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disable</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> disable(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block">Method for disabling specified parser features (check <a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson"><code>JsonParser.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="isEnabled(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isEnabled</h4> <pre>public final boolean isEnabled(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block">Checked whether specified parser feature is enabled.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="enableParserFeature(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enableParserFeature</h4> <pre>public final void enableParserFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonParser.Feature)"><code>enable(JsonParser.Feature)</code></a> instead</i></div> </li> </ul> <a name="disableParserFeature(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disableParserFeature</h4> <pre>public final void disableParserFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonParser.Feature)"><code>disable(JsonParser.Feature)</code></a> instead</i></div> </li> </ul> <a name="setParserFeature(org.codehaus.jackson.JsonParser.Feature, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setParserFeature</h4> <pre>public final void setParserFeature(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f, boolean state)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonParser.Feature, boolean)"><code>configure(JsonParser.Feature, boolean)</code></a> instead</i></div> </li> </ul> <a name="isParserFeatureEnabled(org.codehaus.jackson.JsonParser.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isParserFeatureEnabled</h4> <pre>public final boolean isParserFeatureEnabled(<a href="../../../org/codehaus/jackson/JsonParser.Feature.html" title="enum in org.codehaus.jackson">JsonParser.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonParser.Feature)"><code>isEnabled(JsonParser.Feature)</code></a> instead</i></div> </li> </ul> <a name="getInputDecorator()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getInputDecorator</h4> <pre>public <a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a> getInputDecorator()</pre> <div class="block">Method for getting currently configured input decorator (if any; there is no default decorator).</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="setInputDecorator(org.codehaus.jackson.io.InputDecorator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setInputDecorator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> setInputDecorator(<a href="../../../org/codehaus/jackson/io/InputDecorator.html" title="class in org.codehaus.jackson.io">InputDecorator</a> d)</pre> <div class="block">Method for overriding currently configured input decorator</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>configure</h4> <pre>public final <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> configure(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, boolean state)</pre> <div class="block">Method for enabling or disabling specified generator feature (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="enable(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enable</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> enable(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block">Method for enabling specified generator features (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="disable(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disable</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> disable(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block">Method for disabling specified generator feature (check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of features)</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isEnabled</h4> <pre>public final boolean isEnabled(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block">Check whether specified generator feature is enabled.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="enableGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enableGeneratorFeature</h4> <pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> public final void enableGeneratorFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="disableGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disableGeneratorFeature</h4> <pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> public final void disableGeneratorFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="setGeneratorFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setGeneratorFeature</h4> <pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> public final void setGeneratorFeature(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f, boolean state)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(JsonGenerator.Feature, boolean)</code></a> instead</i></div> </li> </ul> <a name="isGeneratorFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isGeneratorFeatureEnabled</h4> <pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> public final boolean isGeneratorFeatureEnabled(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block"><span class="strong">Deprecated.</span> <i>Use <a href="../../../org/codehaus/jackson/JsonFactory.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="getCharacterEscapes()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getCharacterEscapes</h4> <pre>public <a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> getCharacterEscapes()</pre> <div class="block">Method for accessing custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s it creates.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setCharacterEscapes</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> setCharacterEscapes(<a href="../../../org/codehaus/jackson/io/CharacterEscapes.html" title="class in org.codehaus.jackson.io">CharacterEscapes</a> esc)</pre> <div class="block">Method for defining custom escapes factory uses for <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>s it creates.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="getOutputDecorator()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutputDecorator</h4> <pre>public <a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a> getOutputDecorator()</pre> <div class="block">Method for getting currently configured output decorator (if any; there is no default decorator).</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="setOutputDecorator(org.codehaus.jackson.io.OutputDecorator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOutputDecorator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> setOutputDecorator(<a href="../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io">OutputDecorator</a> d)</pre> <div class="block">Method for overriding currently configured output decorator</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="setCodec(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setCodec</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson">JsonFactory</a> setCodec(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</pre> <div class="block">Method for associating a <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><code>ObjectCodec</code></a> (typically a <a href="../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a>) with this factory (and more importantly, parsers and generators it constructs). This is needed to use data-binding methods of <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> and <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a> instances.</div> </li> </ul> <a name="getCodec()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getCodec</h4> <pre>public <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> </li> </ul> <a name="createJsonParser(java.io.File)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing JSON parser instance to parse contents of specified file. Encoding is auto-detected from contents according to JSON specification recommended mechanism. <p> Underlying input stream (needed for reading contents) will be <b>owned</b> (and managed, i.e. closed as need be) by the parser, since caller has no access to it.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - File that contains JSON content to parse</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(java.net.URL)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing JSON parser instance to parse contents of resource reference by given URL. Encoding is auto-detected from contents according to JSON specification recommended mechanism. <p> Underlying input stream (needed for reading contents) will be <b>owned</b> (and managed, i.e. closed as need be) by the parser, since caller has no access to it.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>url</code> - URL pointing to resource that contains JSON content to parse</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(java.io.InputStream)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing JSON parser instance to parse the contents accessed via specified input stream. <p> The input stream will <b>not be owned</b> by the parser, it will still be managed (i.e. closed if end-of-stream is reacher, or parser close method called) if (and only if) <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled. <p> Note: no encoding argument is taken since it can always be auto-detected as suggested by Json RFC.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - InputStream to use for reading JSON content to parse</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(java.io.Reader)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing parser for parsing the contents accessed via specified Reader. <p> The read stream will <b>not be owned</b> by the parser, it will still be managed (i.e. closed if end-of-stream is reacher, or parser close method called) if (and only if) <a href="../../../org/codehaus/jackson/JsonParser.Feature.html#AUTO_CLOSE_SOURCE"><code>JsonParser.Feature.AUTO_CLOSE_SOURCE</code></a> is enabled. <p></div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>r</code> - Reader to use for reading JSON content to parse</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(byte[] data) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing parser for parsing the contents of given byte array.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(byte[] data, int offset, int len) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing parser for parsing the contents of given byte array.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - Buffer that contains data to parse</dd><dd><code>offset</code> - Offset of the first data byte within buffer</dd><dd><code>len</code> - Length of contents to parse within buffer</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonParser(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonParser</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> content) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Method for constructing parser for parsing contens of given String.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="createJsonGenerator(java.io.OutputStream, org.codehaus.jackson.JsonEncoding)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonGenerator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> createJsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">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). <p> Underlying stream <b>is NOT owned</b> by the generator constructed, so that generator will NOT close the output stream when <a href="../../../org/codehaus/jackson/JsonGenerator.html#close()"><code>JsonGenerator.close()</code></a> is called (unless auto-closing feature, <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET"><code>JsonGenerator.Feature.AUTO_CLOSE_TARGET</code></a> is enabled). Using application needs to close it explicitly if this is the case. <p> Note: there are formats that use fixed encoding (like most binary data formats) and that ignore passed in encoding.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - OutputStream to use for writing JSON content</dd><dd><code>enc</code> - Character encoding to use</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="createJsonGenerator(java.io.Writer)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonGenerator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> createJsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> out) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Method for constructing JSON generator for writing JSON content using specified Writer. <p> Underlying stream <b>is NOT owned</b> by the generator constructed, so that generator will NOT close the Reader when <a href="../../../org/codehaus/jackson/JsonGenerator.html#close()"><code>JsonGenerator.close()</code></a> is called (unless auto-closing feature, <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET"><code>JsonGenerator.Feature.AUTO_CLOSE_TARGET</code></a> is enabled). Using application needs to close it explicitly.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - Writer to use for writing JSON content</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="createJsonGenerator(java.io.OutputStream)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonGenerator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> createJsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Convenience method for constructing generator that uses default encoding of the format (UTF-8 for JSON and most other data formats). <p> Note: there are formats that use fixed encoding (like most binary data formats).</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="createJsonGenerator(java.io.File, org.codehaus.jackson.JsonEncoding)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createJsonGenerator</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> createJsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Method for constructing JSON generator for writing JSON content to specified file, overwriting contents it might have (or creating it if such file does not yet exist). Encoding to use must be specified, and needs to be one of available types (as per JSON specification). <p> Underlying stream <b>is owned</b> by the generator constructed, i.e. generator will handle closing of file when <a href="../../../org/codehaus/jackson/JsonGenerator.html#close()"><code>JsonGenerator.close()</code></a> is called.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - File to write contents to</dd><dd><code>enc</code> - Character encoding to use</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="_createJsonParser(java.io.InputStream, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createJsonParser</h4> <pre>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> _createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Overridable factory method that actually instantiates desired parser given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> and context object. <p> This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="_createJsonParser(java.io.Reader, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createJsonParser</h4> <pre>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> _createJsonParser(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Overridable factory method that actually instantiates parser using given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a> object for reading content. <p> This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="_createJsonParser(byte[], int, int, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createJsonParser</h4> <pre>protected <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> _createJsonParser(byte[] data, int offset, int len, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <div class="block">Overridable factory method that actually instantiates parser using given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io"><code>Reader</code></a> object for reading content passed as raw byte array. <p> This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="_createJsonGenerator(java.io.Writer, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createJsonGenerator</h4> <pre>protected <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> _createJsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> out, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Overridable factory method that actually instantiates generator for given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io"><code>Writer</code></a> and context object. <p> This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="_createUTF8JsonGenerator(java.io.OutputStream, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createUTF8JsonGenerator</h4> <pre>protected <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> _createUTF8JsonGenerator(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Overridable factory method that actually instantiates generator for given <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a> and context object, using UTF-8 encoding. <p> This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="_createWriter(java.io.OutputStream, org.codehaus.jackson.JsonEncoding, org.codehaus.jackson.io.IOContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createWriter</h4> <pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> _createWriter(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson">JsonEncoding</a> enc, <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> ctxt) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="_createContext(java.lang.Object, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_createContext</h4> <pre>protected <a href="../../../org/codehaus/jackson/io/IOContext.html" title="class in org.codehaus.jackson.io">IOContext</a> _createContext(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> srcRef, boolean resourceManaged)</pre> <div class="block">Overridable factory method that actually instantiates desired context object.</div> </li> </ul> <a name="_getBufferRecycler()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_getBufferRecycler</h4> <pre>public <a href="../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a> _getBufferRecycler()</pre> <div class="block">Method used by factory to create buffer recycler instances for parsers and generators. <p> Note: only public to give access for <code>ObjectMapper</code></div> </li> </ul> <a name="_optimizedStreamFromURL(java.net.URL)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_optimizedStreamFromURL</h4> <pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> _optimizedStreamFromURL(<a href="http://docs.oracle.com/javase/6/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a> url) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Helper methods used for constructing an optimal stream for parsers to use, when input is to be read from an URL. This helps when reading file content via URL.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JsonFactory.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../org/codehaus/jackson/JsonEncoding.html" title="enum in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> <li><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/codehaus/jackson/JsonFactory.html" target="_top">Frames</a></li> <li><a href="JsonFactory.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>