<!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>JsonGenerator (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="JsonGenerator (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/JsonGenerator.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/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> <li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/codehaus/jackson/JsonGenerator.html" target="_top">Frames</a></li> <li><a href="JsonGenerator.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><a href="#nested_class_summary">Nested</a> | </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 JsonGenerator" class="title">Class JsonGenerator</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.JsonGenerator</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <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/impl/JsonGeneratorBase.html" title="class in org.codehaus.jackson.impl">JsonGeneratorBase</a>, <a href="../../../org/codehaus/jackson/util/JsonGeneratorDelegate.html" title="class in org.codehaus.jackson.util">JsonGeneratorDelegate</a>, <a href="../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util">TokenBuffer</a></dd> </dl> <hr> <br> <pre>public abstract class <span class="strong">JsonGenerator</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="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="../../../org/codehaus/jackson/Versioned.html" title="interface in org.codehaus.jackson">Versioned</a></pre> <div class="block">Base class that defines public API for writing JSON content. Instances are created using factory methods of a <a href="../../../org/codehaus/jackson/JsonFactory.html" title="class in org.codehaus.jackson"><code>JsonFactory</code></a> instance.</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"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested_class_summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static class </code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a></strong></code> <div class="block">Enumeration that defines all togglable features for generators.</div> </td> </tr> </table> </li> </ul> <!-- =========== 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/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#_cfgPrettyPrinter">_cfgPrettyPrinter</a></strong></code> <div class="block">Object that handles pretty-printing (usually additional white space to make results more human-readable) during output.</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="colFirst" scope="col">Modifier</th> <th class="colLast" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected </code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#JsonGenerator()">JsonGenerator</a></strong>()</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>boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a></strong>(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</code> <div class="block">Method that can be used to verify that given schema can be used with this generator (using <a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#close()">close</a></strong>()</code> <div class="block">Method called to close this generator, so that no more content can be written.</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/JsonGenerator.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 feature: check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">copyCurrentEvent</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp)</code> <div class="block">Method for copying contents of the current event that the given parser instance points to.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">copyCurrentStructure</a></strong>(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp)</code> <div class="block">Method for copying contents of the current event <b>and following events that it encloses</b> the given parser instance points to.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract <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/JsonGenerator.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 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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#disableFeature(org.codehaus.jackson.JsonGenerator.Feature)">disableFeature</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/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract <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/JsonGenerator.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 parser features: check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#enableFeature(org.codehaus.jackson.JsonGenerator.Feature)">enableFeature</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/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#flush()">flush</a></strong>()</code> <div class="block">Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.</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/JsonGenerator.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>abstract <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/JsonGenerator.html#getCodec()">getCodec</a></strong>()</code> <div class="block">Method for accessing the object used for writing Java object as Json content (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getHighestEscapedChar()">getHighestEscapedChar</a></strong>()</code> <div class="block">Accessor method for testing what is the highest unescaped character configured for this generator.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getOutputContext()">getOutputContext</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><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></code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#getOutputTarget()">getOutputTarget</a></strong>()</code> <div class="block">Method that can be used to get access to object that is used as target for generated output; this is usually either <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> or <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>, depending on what generator was constructed with.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">isClosed</a></strong>()</code> <div class="block">Method that can be called to determine whether this generator is closed or not.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract boolean</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.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">Method for checking whether given 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/JsonGenerator.html#isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isFeatureEnabled</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/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </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/JsonGenerator.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="rowColor"> <td class="colFirst"><code>abstract <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/JsonGenerator.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 that can be called to set or reset the object to use for writing Java objects as JsonContent (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)">setFeature</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/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)</code></a> instead</i></div> </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/JsonGenerator.html#setHighestNonEscapedChar(int)">setHighestNonEscapedChar</a></strong>(int charCode)</code> <div class="block">Method that can be called to request that generator escapes all character codes above specified code point (if positive value); or, to not escape any characters except for ones that must be escaped for the data format (if -1).</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/JsonGenerator.html#setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)">setPrettyPrinter</a></strong>(<a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> pp)</code> <div class="block">Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a></strong>(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</code> <div class="block">Method to call to make this generator use specified schema.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract <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/JsonGenerator.html#useDefaultPrettyPrinter()">useDefaultPrettyPrinter</a></strong>()</code> <div class="block">Convenience method for enabling pretty-printing using the default pretty printer (<a href="../../../org/codehaus/jackson/util/DefaultPrettyPrinter.html" title="class in org.codehaus.jackson.util"><code>DefaultPrettyPrinter</code></a>).</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/JsonGenerator.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> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeArrayFieldStart(java.lang.String)">writeArrayFieldStart</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> fieldName)</code> <div class="block">Convenience method for outputting a field entry ("member") (that will contain a JSON Array value), and the START_ARRAY marker.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">writeBinary</a></strong>(<a href="../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, byte[] data, int offset, int len)</code> <div class="block">Method that will output given chunk of binary data as base64 encoded, as a complete String value (surrounded by double quotes).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[])">writeBinary</a></strong>(byte[] data)</code> <div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, but assumes default to using the Jackson default Base64 variant (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[], int, int)">writeBinary</a></strong>(byte[] data, int offset, int len)</code> <div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, but default to using the Jackson default Base64 variant (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinaryField(java.lang.String, byte[])">writeBinaryField</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> fieldName, byte[] data)</code> <div class="block">Convenience method for outputting a field entry ("member") that contains specified data in base64-encoded form.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">writeBoolean</a></strong>(boolean state)</code> <div class="block">Method for outputting literal Json boolean value (one of Strings 'true' and 'false').</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBooleanField(java.lang.String, boolean)">writeBooleanField</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> fieldName, boolean value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has a boolean value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">writeEndArray</a></strong>()</code> <div class="block">Method for writing closing marker of a JSON Array value (character ']'; plus possible white space decoration if pretty-printing is enabled).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">writeEndObject</a></strong>()</code> <div class="block">Method for writing closing marker of a JSON Object value (character '}'; plus possible white space decoration if pretty-printing is enabled).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.SerializableString)">writeFieldName</a></strong>(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> name)</code> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">writeFieldName</a></strong>(<a href="../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io">SerializedString</a> name)</code> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)">writeFieldName</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> name)</code> <div class="block">Method for writing a field name (JSON String surrounded by double quotes: syntactically identical to a JSON String value), possibly decorated by white space if pretty-printing is enabled.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">writeNull</a></strong>()</code> <div class="block">Method for outputting literal Json null value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNullField(java.lang.String)">writeNullField</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> fieldName)</code> <div class="block">Convenience method for outputting a field entry ("member") that has JSON literal value null.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigDecimal)">writeNumber</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> dec)</code> <div class="block">Method for outputting indicate Json numeric value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigInteger)">writeNumber</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> v)</code> <div class="block">Method for outputting given value as Json number.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">writeNumber</a></strong>(double d)</code> <div class="block">Method for outputting indicate Json numeric value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">writeNumber</a></strong>(float f)</code> <div class="block">Method for outputting indicate Json numeric value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">writeNumber</a></strong>(int v)</code> <div class="block">Method for outputting given value as Json number.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">writeNumber</a></strong>(long v)</code> <div class="block">Method for outputting given value as Json number.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.lang.String)">writeNumber</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> encodedValue)</code> <div class="block">Write method that can be used for custom numeric types that can not be (easily?) converted to "standard" Java number types.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, java.math.BigDecimal)">writeNumberField</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> fieldName, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, double)">writeNumberField</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> fieldName, double value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, float)">writeNumberField</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> fieldName, float value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, int)">writeNumberField</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> fieldName, int value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, long)">writeNumberField</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> fieldName, long value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)">writeObject</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> pojo)</code> <div class="block">Method for writing given Java object (POJO) as Json.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObjectField(java.lang.String, java.lang.Object)">writeObjectField</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> fieldName, <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> pojo)</code> <div class="block">Convenience method for outputting a field entry ("member") that has contents of specific Java object as its value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObjectFieldStart(java.lang.String)">writeObjectFieldStart</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> fieldName)</code> <div class="block">Convenience method for outputting a field entry ("member") (that will contain a JSON Object value), and the START_OBJECT marker.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">writeRaw</a></strong>(char c)</code> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">writeRaw</a></strong>(char[] text, int offset, int len)</code> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)">writeRaw</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> text)</code> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String, int, int)">writeRaw</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> text, int offset, int len)</code> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">writeRawUTF8String</a></strong>(byte[] text, int offset, int length)</code> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input a UTF-8 encoded String that is to be output as-is, without additional escaping (type of which depends on data format; backslashes for JSON).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(char[], int, int)">writeRawValue</a></strong>(char[] text, int offset, int len)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)">writeRawValue</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> text)</code> <div class="block">Method that will force generator to copy input text verbatim without any modifications, but assuming it must constitute a single legal JSON value (number, string, boolean, null, Array or List).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String, int, int)">writeRawValue</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> text, int offset, int len)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">writeStartArray</a></strong>()</code> <div class="block">Method for writing starting marker of a JSON Array value (character '['; plus possible white space decoration if pretty-printing is enabled).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">writeStartObject</a></strong>()</code> <div class="block">Method for writing starting marker of a JSON Object value (character '{'; plus possible white space decoration if pretty-printing is enabled).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">writeString</a></strong>(char[] text, int offset, int len)</code> <div class="block">Method for outputting a String value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(org.codehaus.jackson.SerializableString)">writeString</a></strong>(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> text)</code> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>, but that takes <a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially more efficient to call as generator may be able to reuse quoted and/or encoded representation.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)">writeString</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> text)</code> <div class="block">Method for outputting a String value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeStringField(java.lang.String, java.lang.String)">writeStringField</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> fieldName, <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> value)</code> <div class="block">Convenience method for outputting a field entry ("member") that has a String value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeTree(org.codehaus.jackson.JsonNode)">writeTree</a></strong>(<a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> rootNode)</code> <div class="block">Method for writing given JSON tree (expressed as a tree where given JsonNode is the root) using this generator.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>abstract void</code></td> <td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">writeUTF8String</a></strong>(byte[] text, int offset, int length)</code> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input a UTF-8 encoded String which has <b>not</b> been escaped using whatever escaping scheme data format requires (for JSON that is backslash-escaping for control characters and double-quotes; for other formats something else).</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="_cfgPrettyPrinter"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_cfgPrettyPrinter</h4> <pre>protected <a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> _cfgPrettyPrinter</pre> <div class="block">Object that handles pretty-printing (usually additional white space to make results more human-readable) during output. If null, no pretty-printing is done.</div> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="JsonGenerator()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>JsonGenerator</h4> <pre>protected JsonGenerator()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="setSchema(org.codehaus.jackson.FormatSchema)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSchema</h4> <pre>public void setSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> <div class="block">Method to call to make this generator use specified schema. Method must be called before generating any content, right after instance has been created. Note that not all generators support schemas; and those that do usually only accept specific types of schemas: ones defined for data format this generator produces. <p> If generator does not support specified schema, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to use</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - if generator does not support schema</dd><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="canUseSchema(org.codehaus.jackson.FormatSchema)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>canUseSchema</h4> <pre>public boolean canUseSchema(<a href="../../../org/codehaus/jackson/FormatSchema.html" title="interface in org.codehaus.jackson">FormatSchema</a> schema)</pre> <div class="block">Method that can be used to verify that given schema can be used with this generator (using <a href="../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)"><code>setSchema(org.codehaus.jackson.FormatSchema)</code></a>).</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>schema</code> - Schema to check</dd> <dt><span class="strong">Returns:</span></dt><dd>True if this generator can use given schema; false if not</dd><dt><span class="strong">Since:</span></dt> <dd>1.8</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> <dt><span class="strong">Since:</span></dt> <dd>1.6</dd></dl> </li> </ul> <a name="getOutputTarget()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutputTarget</h4> <pre>public <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> getOutputTarget()</pre> <div class="block">Method that can be used to get access to object that is used as target for generated output; this is usually either <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> or <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>, depending on what generator was constructed with. Note that returned value may be null in some cases; including case where implementation does not want to exposed raw source to caller. In cases where output has been decorated, object returned here is the decorated version; this allows some level of interaction between users of generator and decorator object. <p> In general use of this accessor should be considered as "last effort", i.e. only used if no other mechanism is applicable.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="enable(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enable</h4> <pre>public abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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 parser features: check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><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 abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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 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">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><dt><span class="strong">Since:</span></dt> <dd>1.2</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 <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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 feature: check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd><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 abstract boolean isEnabled(<a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block">Method for checking whether given feature is enabled. Check <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a> for list of available features.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.2</dd></dl> </li> </ul> <a name="setCodec(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setCodec</h4> <pre>public abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setCodec(<a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> oc)</pre> <div class="block">Method that can be called to set or reset the object to use for writing Java objects as JsonContent (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="getCodec()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getCodec</h4> <pre>public abstract <a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> <div class="block">Method for accessing the object used for writing Java object as Json content (using method <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a>).</div> </li> </ul> <a name="enableFeature(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enableFeature</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 void enableFeature(<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/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)"><code>enable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="disableFeature(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disableFeature</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 void disableFeature(<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/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)"><code>disable(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setFeature</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 void setFeature(<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/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)"><code>configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)</code></a> instead</i></div> </li> </ul> <a name="isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isFeatureEnabled</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 boolean isFeatureEnabled(<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/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"><code>isEnabled(org.codehaus.jackson.JsonGenerator.Feature)</code></a> instead</i></div> </li> </ul> <a name="setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setPrettyPrinter</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setPrettyPrinter(<a href="../../../org/codehaus/jackson/PrettyPrinter.html" title="interface in org.codehaus.jackson">PrettyPrinter</a> pp)</pre> <div class="block">Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability. By default, generator does not do pretty printing. <p> To use the default pretty printer that comes with core Jackson distribution, call <a href="../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()"><code>useDefaultPrettyPrinter()</code></a> instead.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="useDefaultPrettyPrinter()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useDefaultPrettyPrinter</h4> <pre>public abstract <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> useDefaultPrettyPrinter()</pre> <div class="block">Convenience method for enabling pretty-printing using the default pretty printer (<a href="../../../org/codehaus/jackson/util/DefaultPrettyPrinter.html" title="class in org.codehaus.jackson.util"><code>DefaultPrettyPrinter</code></a>).</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="setHighestNonEscapedChar(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHighestNonEscapedChar</h4> <pre>public <a href="../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> setHighestNonEscapedChar(int charCode)</pre> <div class="block">Method that can be called to request that generator escapes all character codes above specified code point (if positive value); or, to not escape any characters except for ones that must be escaped for the data format (if -1). To force escaping of all non-ASCII characters, for example, this method would be called with value of 127. <p> Note that generators are NOT required to support setting of value higher than 127, because there are other ways to affect quoting (or lack thereof) of character codes between 0 and 127. Not all generators support concept of escaping, either; if so, calling this method will have no effect. <p> Default implementation does nothing; sub-classes need to redefine it according to rules of supported data format.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>charCode</code> - Either -1 to indicate that no additional escaping is to be done; or highest code point not to escape (meaning higher ones will be), if positive value.</dd><dt><span class="strong">Since:</span></dt> <dd>1.8</dd></dl> </li> </ul> <a name="getHighestEscapedChar()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getHighestEscapedChar</h4> <pre>public int getHighestEscapedChar()</pre> <div class="block">Accessor method for testing what is the highest unescaped character configured for this generator. This may be either positive value (when escaping configuration has been set and is in effect), or 0 to indicate that no additional escaping is in effect. Some generators may not support additional escaping: for example, generators for binary formats that do not use escaping should simply return 0.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Currently active limitation for highest non-escaped character, if defined; or -1 to indicate no additional escaping is performed.</dd></dl> </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/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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="writeStartArray()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeStartArray</h4> <pre>public abstract void writeStartArray() 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for writing starting marker of a JSON Array value (character '['; plus possible white space decoration if pretty-printing is enabled). <p> Array values can be written in any context where values are allowed: meaning everywhere except for when a field name is expected.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeEndArray()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeEndArray</h4> <pre>public abstract void writeEndArray() 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for writing closing marker of a JSON Array value (character ']'; plus possible white space decoration if pretty-printing is enabled). <p> Marker can be written if the innermost structured type is 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeStartObject()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeStartObject</h4> <pre>public abstract void writeStartObject() 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for writing starting marker of a JSON Object value (character '{'; plus possible white space decoration if pretty-printing is enabled). <p> Object values can be written in any context where values are allowed: meaning everywhere except for when a field name is expected.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeEndObject()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeEndObject</h4> <pre>public abstract void writeEndObject() 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for writing closing marker of a JSON Object value (character '}'; plus possible white space decoration if pretty-printing is enabled). <p> Marker can be written if the innermost structured type is Object, and the last written event was either a complete value, or START-OBJECT marker (see JSON specification for more details).</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeFieldName(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeFieldName</h4> <pre>public abstract void writeFieldName(<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> name) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for writing a field name (JSON String surrounded by double quotes: syntactically identical to a JSON String value), possibly decorated by white space if pretty-printing is enabled. <p> Field names can only be written in Object context (check out JSON specification for details), when field name is expected (field names alternate with values).</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeFieldName(org.codehaus.jackson.io.SerializedString)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeFieldName</h4> <pre>public void writeFieldName(<a href="../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io">SerializedString</a> name) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls. <p> Default implementation simple uses unprocessed name container in serialized String; implementations are strongly encouraged to make use of more efficient methods argument object has.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.6</dd></dl> </li> </ul> <a name="writeFieldName(org.codehaus.jackson.SerializableString)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeFieldName</h4> <pre>public void writeFieldName(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> name) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>writeFieldName(String)</code></a>, main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls. <p> Default implementation simple uses unprocessed name container in serialized String; implementations are strongly encouraged to make use of more efficient methods argument object has.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.7</dd></dl> </li> </ul> <a name="writeString(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeString</h4> <pre>public abstract void writeString(<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> text) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting a String value. Depending on context this means either array element, (object) field value or a stand alone String; but in all cases, String will be surrounded in double quotes, and contents will be properly escaped as required by JSON specification.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeString(char[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeString</h4> <pre>public abstract void writeString(char[] text, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting a String value. Depending on context this means either array element, (object) field value or a stand alone String; but in all cases, String will be surrounded in double quotes, and contents will be properly escaped as required by JSON specification.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeString(org.codehaus.jackson.SerializableString)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeString</h4> <pre>public void writeString(<a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson">SerializableString</a> text) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>, but that takes <a href="../../../org/codehaus/jackson/SerializableString.html" title="interface in org.codehaus.jackson"><code>SerializableString</code></a> which can make this potentially more efficient to call as generator may be able to reuse quoted and/or encoded representation. <p> Default implementation just calls <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a>; sub-classes should override it with more efficient implementation if possible.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.7</dd></dl> </li> </ul> <a name="writeRawUTF8String(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRawUTF8String</h4> <pre>public abstract void writeRawUTF8String(byte[] text, int offset, int length) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input a UTF-8 encoded String that is to be output as-is, without additional escaping (type of which depends on data format; backslashes for JSON). However, quoting that data format requires (like double-quotes for JSON) will be added around the value if and as necessary. <p> Note that some backends may choose not to support this method: for example, if underlying destination is a <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> using this method would require UTF-8 decoding. If so, implementation may instead choose to throw a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> due to ineffectiveness of having to decode input.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.7</dd></dl> </li> </ul> <a name="writeUTF8String(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeUTF8String</h4> <pre>public abstract void writeUTF8String(byte[] text, int offset, int length) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(String)</code></a> but that takes as its input a UTF-8 encoded String which has <b>not</b> been escaped using whatever escaping scheme data format requires (for JSON that is backslash-escaping for control characters and double-quotes; for other formats something else). This means that textual JSON backends need to check if value needs JSON escaping, but otherwise can just be copied as is to output. Also, quoting that data format requires (like double-quotes for JSON) will be added around the value if and as necessary. <p> Note that some backends may choose not to support this method: for example, if underlying destination is a <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> using this method would require UTF-8 decoding. In this case generator implementation may instead choose to throw a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> due to ineffectiveness of having to decode input.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> <dd>1.7</dd></dl> </li> </ul> <a name="writeRaw(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRaw</h4> <pre>public abstract void writeRaw(<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> text) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such). If such separators are desired, use <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. <p> Note that not all generator implementations necessarily support such by-pass methods: those that do not will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRaw(java.lang.String, int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRaw</h4> <pre>public abstract void writeRaw(<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> text, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such). If such separators are desired, use <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. <p> Note that not all generator implementations necessarily support such by-pass methods: those that do not will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRaw(char[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRaw</h4> <pre>public abstract void writeRaw(char[] text, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such). If such separators are desired, use <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. <p> Note that not all generator implementations necessarily support such by-pass methods: those that do not will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRaw(char)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRaw</h4> <pre>public abstract void writeRaw(char c) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will force generator to copy input text verbatim with <b>no</b> modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such). If such separators are desired, use <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)"><code>writeRawValue(String)</code></a> instead. <p> Note that not all generator implementations necessarily support such by-pass methods: those that do not will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRawValue(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRawValue</h4> <pre>public abstract void writeRawValue(<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> text) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will force generator to copy input text verbatim without any modifications, but assuming it must constitute a single legal JSON value (number, string, boolean, null, Array or List). Assuming this, proper separators are added if and as needed (comma or colon), and generator state updated to reflect this.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRawValue(java.lang.String, int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRawValue</h4> <pre>public abstract void writeRawValue(<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> text, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</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> <dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRawValue(char[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRawValue</h4> <pre>public abstract void writeRawValue(char[] text, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</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> <dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBinary</h4> <pre>public abstract void writeBinary(<a href="../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method that will output given chunk of binary data as base64 encoded, as a complete String value (surrounded by double quotes). This method defaults <p> Note: because Json Strings can not contain unescaped linefeeds, if linefeeds are included (as per last argument), they must be escaped. This adds overhead for decoding without improving readability. Alternatively if linefeeds are not included, resulting String value may violate the requirement of base64 RFC which mandates line-length of 76 characters and use of linefeeds. However, all <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> implementations are required to accept such "long line base64"; as do typical production-level base64 decoders.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>b64variant</code> - Base64 variant to use: defines details such as whether padding is used (and if so, using which character); what is the maximum line length before adding linefeed, and also the underlying alphabet 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> <dd><code><a href="../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBinary(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBinary</h4> <pre>public void writeBinary(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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, but default to using the Jackson default Base64 variant (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>).</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBinary(byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBinary</h4> <pre>public void writeBinary(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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Similar to <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)"><code>writeBinary(Base64Variant,byte[],int,int)</code></a>, but assumes default to using the Jackson default Base64 variant (which is <a href="../../../org/codehaus/jackson/Base64Variants.html#MIME_NO_LINEFEEDS"><code>Base64Variants.MIME_NO_LINEFEEDS</code></a>). Also assumes that whole byte array is to be output.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(int v) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting given value as Json number. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(long v) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting given value as Json number. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(java.math.BigInteger)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> v) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting given value as Json number. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(double)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(double d) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting indicate Json numeric value. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(float)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(float 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting indicate Json numeric value. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(java.math.BigDecimal)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> dec) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting indicate Json numeric value. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumber(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumber</h4> <pre>public abstract void writeNumber(<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> encodedValue) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></pre> <div class="block">Write method that can be used for custom numeric types that can not be (easily?) converted to "standard" Java number types. Because numbers are not surrounded by double quotes, regular <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>writeString(java.lang.String)</code></a> method can not be used; nor <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)"><code>writeRaw(java.lang.String)</code></a> because that does not properly handle value separators needed in Array or Object contexts. <p> Note: because of lack of type safety, some generator implementations may not be able to implement this method. For example, if a binary json format is used, it may require type information for encoding; similarly for generator-wrappers around Java objects or Json nodes. If implementation does not implement this method, it needs to throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a>.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code></dd></dl> </li> </ul> <a name="writeBoolean(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBoolean</h4> <pre>public abstract void writeBoolean(boolean state) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting literal Json boolean value (one of Strings 'true' and 'false'). Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNull()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNull</h4> <pre>public abstract void writeNull() 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Method for outputting literal Json null value. Can be called in any context where a value is expected (Array value, Object field value, root-level value). Additional white space may be added around the value if pretty-printing is enabled.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeObject(java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeObject</h4> <pre>public abstract void writeObject(<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> pojo) 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block">Method for writing given Java object (POJO) as Json. Exactly how the object gets written depends on object in question (ad on codec, its configuration); for most beans it will result in Json object, but for others Json array, or String or numeric value (and for nulls, Json null literal. <b>NOTE</b>: generator must have its <b>object codec</b> set to non-null value; for generators created by a mapping factory this is the case, for others not.</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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="writeTree(org.codehaus.jackson.JsonNode)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeTree</h4> <pre>public abstract void writeTree(<a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> rootNode) 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block">Method for writing given JSON tree (expressed as a tree where given JsonNode is the root) using this generator. This will generally just call <a href="../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)"><code>writeObject(java.lang.Object)</code></a> with given node, but is added for convenience and to make code more explicit in cases where it deals specifically with trees.</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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="writeStringField(java.lang.String, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeStringField</h4> <pre>public void writeStringField(<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> fieldName, <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> value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has a String value. Equivalent to: <pre> writeFieldName(fieldName); writeString(value); </pre> <p> Note: many performance-sensitive implementations override this method</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBooleanField(java.lang.String, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBooleanField</h4> <pre>public final void writeBooleanField(<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> fieldName, boolean value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has a boolean value. Equivalent to: <pre> writeFieldName(fieldName); writeBoolean(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNullField(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNullField</h4> <pre>public final void writeNullField(<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> fieldName) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has JSON literal value null. Equivalent to: <pre> writeFieldName(fieldName); writeNull(); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumberField(java.lang.String, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumberField</h4> <pre>public final void writeNumberField(<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> fieldName, int value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value. Equivalent to: <pre> writeFieldName(fieldName); writeNumber(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumberField(java.lang.String, long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumberField</h4> <pre>public final void writeNumberField(<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> fieldName, long value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value. Equivalent to: <pre> writeFieldName(fieldName); writeNumber(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumberField(java.lang.String, double)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumberField</h4> <pre>public final void writeNumberField(<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> fieldName, double value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value. Equivalent to: <pre> writeFieldName(fieldName); writeNumber(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumberField(java.lang.String, float)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumberField</h4> <pre>public final void writeNumberField(<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> fieldName, float value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value. Equivalent to: <pre> writeFieldName(fieldName); writeNumber(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeNumberField(java.lang.String, java.math.BigDecimal)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeNumberField</h4> <pre>public final void writeNumberField(<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> fieldName, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> value) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has the specified numeric value. Equivalent to: <pre> writeFieldName(fieldName); writeNumber(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBinaryField(java.lang.String, byte[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBinaryField</h4> <pre>public final void writeBinaryField(<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> fieldName, 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that contains specified data in base64-encoded form. Equivalent to: <pre> writeFieldName(fieldName); writeBinary(value); </pre></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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeArrayFieldStart(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeArrayFieldStart</h4> <pre>public final void writeArrayFieldStart(<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> fieldName) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") (that will contain a JSON Array value), and the START_ARRAY marker. Equivalent to: <pre> writeFieldName(fieldName); writeStartArray(); </pre> <p> Note: caller still has to take care to close the array (by calling {#link #writeEndArray}) after writing all values of the value 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeObjectFieldStart(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeObjectFieldStart</h4> <pre>public final void writeObjectFieldStart(<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> fieldName) 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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") (that will contain a JSON Object value), and the START_OBJECT marker. Equivalent to: <pre> writeFieldName(fieldName); writeStartObject(); </pre> <p> Note: caller still has to take care to close the Object (by calling {#link #writeEndObject}) after writing all entries of the value Object.</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/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeObjectField(java.lang.String, java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeObjectField</h4> <pre>public final void writeObjectField(<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> fieldName, <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> pojo) 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block">Convenience method for outputting a field entry ("member") that has contents of specific Java object as its value. Equivalent to: <pre> writeFieldName(fieldName); writeObject(pojo); </pre></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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="copyCurrentEvent(org.codehaus.jackson.JsonParser)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copyCurrentEvent</h4> <pre>public abstract void copyCurrentEvent(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block">Method for copying contents of the current event that the given parser instance points to. Note that the method <b>will not</b> copy any other events, such as events contained within Json Array or Object structures. <p> Calling this method will not advance the given parser, although it may cause parser to internally process more data (if it lazy loads contents of value events, for example)</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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="copyCurrentStructure(org.codehaus.jackson.JsonParser)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copyCurrentStructure</h4> <pre>public abstract void copyCurrentStructure(<a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> jp) 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block">Method for copying contents of the current event <b>and following events that it encloses</b> the given parser instance points to. <p> So what constitutes enclosing? Here is the list of events that have associated enclosed events that will get copied: <ul> <li><a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>JsonToken.START_OBJECT</code></a>: all events up to and including matching (closing) <a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>JsonToken.END_OBJECT</code></a> will be copied </li> <li><a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY"><code>JsonToken.START_ARRAY</code></a> all events up to and including matching (closing) <a href="../../../org/codehaus/jackson/JsonToken.html#END_ARRAY"><code>JsonToken.END_ARRAY</code></a> will be copied </li> <li><a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME"><code>JsonToken.FIELD_NAME</code></a> the logical value (which can consist of a single scalar value; or a sequence of related events for structured types (Json Arrays, Objects)) will be copied along with the name itself. So essentially the whole <b>field entry</b> (name and value) will be copied. </li> </ul> <p> After calling this method, parser will point to the <b>last event</b> that was copied. This will either be the event parser already pointed to (if there were no enclosed events), or the last enclosed event copied.</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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="getOutputContext()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutputContext</h4> <pre>public abstract <a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson">JsonStreamContext</a> getOutputContext()</pre> <dl><dt><span class="strong">Returns:</span></dt><dd>Context object that can give information about logical position within generated json content.</dd></dl> </li> </ul> <a name="flush()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>flush</h4> <pre>public abstract void flush() 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 called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.</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="isClosed()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isClosed</h4> <pre>public abstract boolean isClosed()</pre> <div class="block">Method that can be called to determine whether this generator is closed or not. If it is closed, no more output can be done.</div> </li> </ul> <a name="close()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>close</h4> <pre>public abstract void close() 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 called to close this generator, so that no more content can be written. <p> Whether the underlying target (stream, writer) gets closed depends on whether this generator either manages the target (i.e. is the only one with access to the target -- case if caller passes a reference to the resource such as File, but not stream); or has feature <a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html#AUTO_CLOSE_TARGET"><code>JsonGenerator.Feature.AUTO_CLOSE_TARGET</code></a> enabled. If either of above is true, the target is also closed. Otherwise (not managing, feature not enabled), target is not closed.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd> <dt><strong>Specified by:</strong></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></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> </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/JsonGenerator.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/JsonGenerationException.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> <li><a href="../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/codehaus/jackson/JsonGenerator.html" target="_top">Frames</a></li> <li><a href="JsonGenerator.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><a href="#nested_class_summary">Nested</a> | </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>