<!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:25 PDT 2013 --> <title>TokenBuffer (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="TokenBuffer (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/TokenBuffer.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/util/TextBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.html" target="_top">Frames</a></li> <li><a href="TokenBuffer.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.util</div> <h2 title="Class TokenBuffer" class="title">Class TokenBuffer</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><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonGenerator</a></li> <li> <ul class="inheritance"> <li>org.codehaus.jackson.util.TokenBuffer</li> </ul> </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> <hr> <br> <pre>public class <span class="strong">TokenBuffer</span> extends <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></pre> <div class="block">Utility class used for efficient storage of <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> sequences, needed for temporary buffering. Space efficient for different sequence lengths (especially so for smaller ones; but not significantly less efficient for larger), highly efficient for linear iteration and appending. Implemented as segmented/chunked linked list of tokens; only modifications are via appends.</div> <dl><dt><span class="strong">Since:</span></dt> <dd>1.5</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>protected static class </code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util">TokenBuffer.Parser</a></strong></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected static class </code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></strong></code> <div class="block">Individual segment of TokenBuffer that can store up to 16 tokens (limited by 4 bits per token type marker requirement).</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="nested_classes_inherited_from_class_org.codehaus.jackson.JsonGenerator"> <!-- --> </a> <h3>Nested classes/interfaces inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> <code><a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a></code></li> </ul> </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 int</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_appendOffset">_appendOffset</a></strong></code> <div class="block">Offset within last segment,</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_closed">_closed</a></strong></code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_first">_first</a></strong></code> <div class="block">First segment, for contents this buffer has</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected int</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_generatorFeatures">_generatorFeatures</a></strong></code> <div class="block">Bit flag composed of bits that indicate which <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a>s are enabled.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_last">_last</a></strong></code> <div class="block">Last segment of this buffer, one that is used for appending more tokens</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_objectCodec">_objectCodec</a></strong></code> <div class="block">Object codec to use for stream-based object conversion through parser/generator interfaces.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_writeContext">_writeContext</a></strong></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected static int</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#DEFAULT_PARSER_FEATURES">DEFAULT_PARSER_FEATURES</a></strong></code> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonGenerator"> <!-- --> </a> <h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#_cfgPrettyPrinter">_cfgPrettyPrinter</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#TokenBuffer(org.codehaus.jackson.ObjectCodec)">TokenBuffer</a></strong>(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_append(org.codehaus.jackson.JsonToken)">_append</a></strong>(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_append(org.codehaus.jackson.JsonToken, java.lang.Object)">_append</a></strong>(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type, <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> value)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#_reportUnsupportedOperation()">_reportUnsupportedOperation</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser()">asParser</a></strong>()</code> <div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents stored in this buffer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser(org.codehaus.jackson.JsonParser)">asParser</a></strong>(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> src)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#asParser(org.codehaus.jackson.ObjectCodec)">asParser</a></strong>(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</code> <div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents stored in this buffer.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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><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/util/TokenBuffer.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><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/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#getOutputContext()">getOutputContext</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#serialize(org.codehaus.jackson.JsonGenerator)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jgen)</code> <div class="block">Helper method that will write all contents of this buffer using given <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>.</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/util/TokenBuffer.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>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#toString()">toString</a></strong>()</code> </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/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.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/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNull()">writeNull</a></strong>()</code> <div class="block">Method for outputting literal Json null value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(int)">writeNumber</a></strong>(int i)</code> <div class="block">Method for outputting given value as Json number.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeNumber(long)">writeNumber</a></strong>(long l)</code> <div class="block">Method for outputting given value as Json number.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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/util/TokenBuffer.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> value)</code> <div class="block">Method for writing given Java object (POJO) as Json.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html#writeRawValue(char[], int, int)">writeRawValue</a></strong>(char[] text, int offset, int len)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.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="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TokenBuffer.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>JsonGenerator.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_org.codehaus.jackson.JsonGenerator"> <!-- --> </a> <h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></h3> <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#canUseSchema(org.codehaus.jackson.FormatSchema)">canUseSchema</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#configure(org.codehaus.jackson.JsonGenerator.Feature, boolean)">configure</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#disableFeature(org.codehaus.jackson.JsonGenerator.Feature)">disableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#enableFeature(org.codehaus.jackson.JsonGenerator.Feature)">enableFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCharacterEscapes()">getCharacterEscapes</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getHighestEscapedChar()">getHighestEscapedChar</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#getOutputTarget()">getOutputTarget</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#isFeatureEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isFeatureEnabled</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCharacterEscapes(org.codehaus.jackson.io.CharacterEscapes)">setCharacterEscapes</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setFeature(org.codehaus.jackson.JsonGenerator.Feature, boolean)">setFeature</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setHighestNonEscapedChar(int)">setHighestNonEscapedChar</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setPrettyPrinter(org.codehaus.jackson.PrettyPrinter)">setPrettyPrinter</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#setSchema(org.codehaus.jackson.FormatSchema)">setSchema</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#version()">version</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeArrayFieldStart(java.lang.String)">writeArrayFieldStart</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[])">writeBinary</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(byte[], int, int)">writeBinary</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinaryField(java.lang.String, byte[])">writeBinaryField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBooleanField(java.lang.String, boolean)">writeBooleanField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNullField(java.lang.String)">writeNullField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, java.math.BigDecimal)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, double)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, float)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, int)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumberField(java.lang.String, long)">writeNumberField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObjectField(java.lang.String, java.lang.Object)">writeObjectField</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObjectFieldStart(java.lang.String)">writeObjectFieldStart</a>, <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStringField(java.lang.String, java.lang.String)">writeStringField</a></code></li> </ul> <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#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="DEFAULT_PARSER_FEATURES"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_PARSER_FEATURES</h4> <pre>protected static final int DEFAULT_PARSER_FEATURES</pre> </li> </ul> <a name="_objectCodec"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_objectCodec</h4> <pre>protected <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> _objectCodec</pre> <div class="block">Object codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods can not be used.</div> </li> </ul> <a name="_generatorFeatures"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_generatorFeatures</h4> <pre>protected int _generatorFeatures</pre> <div class="block">Bit flag composed of bits that indicate which <a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson"><code>JsonGenerator.Feature</code></a>s are enabled. <p> NOTE: most features have no effect on this class</div> </li> </ul> <a name="_closed"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_closed</h4> <pre>protected boolean _closed</pre> </li> </ul> <a name="_first"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_first</h4> <pre>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _first</pre> <div class="block">First segment, for contents this buffer has</div> </li> </ul> <a name="_last"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_last</h4> <pre>protected <a href="../../../../org/codehaus/jackson/util/TokenBuffer.Segment.html" title="class in org.codehaus.jackson.util">TokenBuffer.Segment</a> _last</pre> <div class="block">Last segment of this buffer, one that is used for appending more tokens</div> </li> </ul> <a name="_appendOffset"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_appendOffset</h4> <pre>protected int _appendOffset</pre> <div class="block">Offset within last segment,</div> </li> </ul> <a name="_writeContext"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_writeContext</h4> <pre>protected <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a> _writeContext</pre> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="TokenBuffer(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>TokenBuffer</h4> <pre>public TokenBuffer(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>codec</code> - Object codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods can not be used.</dd></dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="asParser()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asParser</h4> <pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser()</pre> <div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents stored in this buffer. Will use default <code>_objectCodec</code> for object conversions. <p> Note: instances are not synchronized, that is, they are not thread-safe if there are concurrent appends to the underlying buffer.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Parser that can be used for reading contents stored in this buffer</dd></dl> </li> </ul> <a name="asParser(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asParser</h4> <pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser(<a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> codec)</pre> <div class="block">Method used to create a <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> that can read contents stored in this buffer. <p> Note: instances are not synchronized, that is, they are not thread-safe if there are concurrent appends to the underlying buffer.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>codec</code> - Object codec to use for stream-based object conversion through parser/generator interfaces. If null, such methods can not be used.</dd> <dt><span class="strong">Returns:</span></dt><dd>Parser that can be used for reading contents stored in this buffer</dd></dl> </li> </ul> <a name="asParser(org.codehaus.jackson.JsonParser)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asParser</h4> <pre>public <a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> asParser(<a href="../../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson">JsonParser</a> src)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>src</code> - Parser to use for accessing source information like location, configured codec</dd></dl> </li> </ul> <a name="serialize(org.codehaus.jackson.JsonGenerator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>serialize</h4> <pre>public void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jgen) 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">Helper method that will write all contents of this buffer using given <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson"><code>JsonGenerator</code></a>. <p> Note: this method would be enough to implement <code>JsonSerializer</code> for <code>TokenBuffer</code> type; but we can not have upwards references (from core to mapper package); and as such we also can not take second argument.</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="toString()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><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></code> in class <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></dd> </dl> </li> </ul> <a name="enable(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>enable</h4> <pre>public <a href="../../../../org/codehaus/jackson/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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#enable(org.codehaus.jackson.JsonGenerator.Feature)">enable</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="disable(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>disable</h4> <pre>public <a href="../../../../org/codehaus/jackson/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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#disable(org.codehaus.jackson.JsonGenerator.Feature)">disable</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="isEnabled(org.codehaus.jackson.JsonGenerator.Feature)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isEnabled</h4> <pre>public boolean isEnabled(<a href="../../../../org/codehaus/jackson/JsonGenerator.Feature.html" title="enum in org.codehaus.jackson">JsonGenerator.Feature</a> f)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isEnabled(org.codehaus.jackson.JsonGenerator.Feature)">isEnabled</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> </dl> </li> </ul> <a name="useDefaultPrettyPrinter()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useDefaultPrettyPrinter</h4> <pre>public <a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> useDefaultPrettyPrinter()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#useDefaultPrettyPrinter()">useDefaultPrettyPrinter</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>Generator itself (this), to allow chaining</dd></dl> </li> </ul> <a name="setCodec(org.codehaus.jackson.ObjectCodec)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setCodec</h4> <pre>public <a href="../../../../org/codehaus/jackson/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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCodec(org.codehaus.jackson.ObjectCodec)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#setCodec(org.codehaus.jackson.ObjectCodec)">setCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <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 <a href="../../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson">ObjectCodec</a> getCodec()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCodec()">JsonGenerator</a></code></strong></div> <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>JsonGenerator.writeObject(java.lang.Object)</code></a>).</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getCodec()">getCodec</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> </dl> </li> </ul> <a name="getOutputContext()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutputContext</h4> <pre>public final <a href="../../../../org/codehaus/jackson/impl/JsonWriteContext.html" title="class in org.codehaus.jackson.impl">JsonWriteContext</a> getOutputContext()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#getOutputContext()">getOutputContext</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#flush()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#flush()">flush</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <a name="close()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>close</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#close()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#close()">close</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <a name="isClosed()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isClosed</h4> <pre>public boolean isClosed()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">JsonGenerator</a></code></strong></div> <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> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#isClosed()">isClosed</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> </dl> </li> </ul> <a name="writeStartArray()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeStartArray</h4> <pre>public final 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartArray()">writeStartArray</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 final 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndArray()">writeEndArray</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 final 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeStartObject()">writeStartObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 final 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeEndObject()">writeEndObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 final 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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.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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.SerializableString)">JsonGenerator</a></code></strong></div> <div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.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><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.SerializableString)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">JsonGenerator</a></code></strong></div> <div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(java.lang.String)"><code>JsonGenerator.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><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeFieldName(org.codehaus.jackson.io.SerializedString)">writeFieldName</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeString</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(char[], int, int)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(org.codehaus.jackson.SerializableString)">JsonGenerator</a></code></strong></div> <div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.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>JsonGenerator.writeString(String)</code></a>; sub-classes should override it with more efficient implementation if possible.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(org.codehaus.jackson.SerializableString)">writeString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeRawUTF8String(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRawUTF8String</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">JsonGenerator</a></code></strong></div> <div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawUTF8String(byte[], int, int)">writeRawUTF8String</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeUTF8String(byte[], int, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeUTF8String</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">JsonGenerator</a></code></strong></div> <div class="block">Method similar to <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeString(java.lang.String)"><code>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeUTF8String(byte[], int, int)">writeUTF8String</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeRaw</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String, int, int)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String, int, int)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char[], int, int)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(char)">writeRaw</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(java.lang.String, int, int)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRawValue(char[], int, int)">writeRawValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 void writeNumber(int i) 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(int)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 void writeNumber(long l) 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(long)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(double)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(float)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigDecimal)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigDecimal)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigInteger)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.math.BigInteger)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.lang.String)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.writeString(java.lang.String)</code></a> method can not be used; nor <a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeRaw(java.lang.String)"><code>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNumber(java.lang.String)">writeNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerationException.html" title="class in org.codehaus.jackson">JsonGenerationException</a></code></dd></dl> </li> </ul> <a name="writeBoolean(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>writeBoolean</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBoolean(boolean)">writeBoolean</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeNull()">writeNull</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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> 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/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeObject(java.lang.Object)">writeObject</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeTree(org.codehaus.jackson.JsonNode)">JsonGenerator</a></code></strong></div> <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>JsonGenerator.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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeTree(org.codehaus.jackson.JsonNode)">writeTree</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#writeBinary(org.codehaus.jackson.Base64Variant, byte[], int, int)">writeBinary</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a></code></dd> <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="copyCurrentEvent(org.codehaus.jackson.JsonParser)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>copyCurrentEvent</h4> <pre>public 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentEvent(org.codehaus.jackson.JsonParser)">copyCurrentEvent</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <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 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"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">JsonGenerator</a></code></strong></div> <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><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonGenerator.html#copyCurrentStructure(org.codehaus.jackson.JsonParser)">copyCurrentStructure</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</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> <dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="_append(org.codehaus.jackson.JsonToken)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_append</h4> <pre>protected final void _append(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type)</pre> </li> </ul> <a name="_append(org.codehaus.jackson.JsonToken, java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_append</h4> <pre>protected final void _append(<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> type, <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> value)</pre> </li> </ul> <a name="_reportUnsupportedOperation()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_reportUnsupportedOperation</h4> <pre>protected void _reportUnsupportedOperation()</pre> </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/TokenBuffer.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/util/TextBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.Parser.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/codehaus/jackson/util/TokenBuffer.html" target="_top">Frames</a></li> <li><a href="TokenBuffer.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>