Class ToXmlGenerator

java.lang.Object
tools.jackson.core.JsonGenerator
tools.jackson.core.base.GeneratorBase
tools.jackson.dataformat.xml.ser.ToXmlGenerator
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable, tools.jackson.core.Versioned

public class ToXmlGenerator extends tools.jackson.core.base.GeneratorBase
JsonGenerator that outputs JAXB-style XML output instead of JSON content. Operation requires calling code (usually either standard Jackson serializers, or in some cases (like BeanSerializer) customized ones) to do additional configuration calls beyond regular JsonGenerator API, mostly to pass namespace information.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected LinkedList<QName>
    To support proper serialization of arrays it is necessary to keep stack of element names, so that we can "revert" to earlier
    protected int
    Bit flag composed of bits that indicate which XmlWriteFeatures are enabled.
    protected boolean
    Marker set when initGenerator() has been called or not.
    Escapes names with invalid XML characters
    Reusable internal value object
    protected boolean
    Marker flag that indicates whether next name to write implies an attribute (true) or element (false)
    protected boolean
    Marker flag used to indicate that the next write of a (property) value should be as CData
    protected boolean
    Marker flag used to indicate that the next write of a (property) value should be done without using surrounding start/end elements.
    protected QName
    Element or attribute name to use for next output call.
    protected final XMLStreamWriter
     
    protected final boolean
    Marker flag set if the underlying stream writer has to emulate Stax2 API: this is problematic if trying to use writeRaw(java.lang.String) calls.
    protected tools.jackson.core.util.SimpleStreamWriteContext
    Object that keeps track of the current contextual state of the generator.
    protected final XmlPrettyPrinter
    We may need to use XML-specific indentation as well
    protected final org.codehaus.stax2.XMLStreamWriter2
     
    protected static final String
    If we support optional definition of element names, this is the element name to use...

    Fields inherited from class tools.jackson.core.base.GeneratorBase

    _closed, _ioContext, _objectWriteContext, _streamWriteConstraints, _streamWriteFeatures, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToXmlGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int streamWriteFeatures, int xmlFeatures, XMLStreamWriter sw, XmlPrettyPrinter pp, XmlNameProcessor nameProcessor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected tools.jackson.core.PrettyPrinter
     
    final void
     
    final void
     
    protected void
     
    protected void
    Method called in case access to native Stax2 API implementation is required.
    protected final void
     
    final void
     
    protected boolean
    Method called to see if unwrapping is required; and if so, clear the flag (so further calls will return 'false' unless state is re-set)
    configure(XmlWriteFeature f, boolean state)
     
    final Object
     
    void
    finishWrappedValue(QName wrapperName, QName wrappedName)
    Method called after a structured collection output has completed
    void
     
     
    Method that allows application direct access to underlying Stax XMLStreamWriter.
    protected void
     
    boolean
    has(tools.jackson.core.StreamWriteCapability capability)
     
    void
    Method called before writing any other output, to optionally output XML declaration.
    boolean
     
    final boolean
     
    void
    setNextIsAttribute(boolean isAttribute)
     
    void
    setNextIsCData(boolean isCData)
     
    void
    setNextIsUnwrapped(boolean isUnwrapped)
     
    final void
     
    final boolean
    Method that does same as setNextName(javax.xml.namespace.QName), unless a name has already been set.
    void
    startWrappedValue(QName wrapperName, QName wrappedName)
    Methdod called when a structured (collection, array, map) is being output.
    tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamWriteCapability>
     
    final tools.jackson.core.TokenStreamContext
     
    int
    Stax2 does not expose buffered content amount, so we can only return -1 from here
     
    tools.jackson.core.Version
     
    tools.jackson.core.JsonGenerator
    writeBinary(tools.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len)
     
    int
    writeBinary(tools.jackson.core.Base64Variant b64variant, InputStream data, int dataLength)
     
    tools.jackson.core.JsonGenerator
    writeBoolean(boolean value)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeName(tools.jackson.core.SerializableString name)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeNumber(double d)
     
    tools.jackson.core.JsonGenerator
    writeNumber(float f)
     
    tools.jackson.core.JsonGenerator
    writeNumber(int i)
     
    tools.jackson.core.JsonGenerator
    writeNumber(long l)
     
    tools.jackson.core.JsonGenerator
    writeNumber(short v)
     
    tools.jackson.core.JsonGenerator
    writeNumber(String encodedValue)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writePropertyId(long id)
     
    tools.jackson.core.JsonGenerator
    writeRaw(char c)
     
    tools.jackson.core.JsonGenerator
    writeRaw(char[] text, int offset, int len)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeRaw(String text, int offset, int len)
     
    tools.jackson.core.JsonGenerator
    writeRawUTF8String(byte[] text, int offset, int length)
     
    tools.jackson.core.JsonGenerator
    writeRawValue(char[] text, int offset, int len)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeRawValue(String text, int offset, int len)
     
    tools.jackson.core.JsonGenerator
    writeRawValue(tools.jackson.core.SerializableString text)
     
    tools.jackson.core.JsonGenerator
    Trivial helper method called when to add a replicated wrapper name
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeString(char[] text, int offset, int len)
     
    tools.jackson.core.JsonGenerator
     
    tools.jackson.core.JsonGenerator
    writeString(tools.jackson.core.SerializableString text)
     
    tools.jackson.core.JsonGenerator
    writeUTF8String(byte[] text, int offset, int length)
     

    Methods inherited from class tools.jackson.core.base.GeneratorBase

    _asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _decodeSurrogate, _throwInternal, close, configure, ioContext, isClosed, isEnabled, objectWriteContext, streamWriteConstraints, streamWriteFeatures, writePOJO, writeStartArray, writeStartObject, writeString, writeTree

    Methods inherited from class tools.jackson.core.JsonGenerator

    _constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentContentsExact, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportArgumentError, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _verifyOffsets, _wrapIOFailure, _writeTypePrefixUsingNative, _writeTypePrefixUsingWrapper, canOmitProperties, canWriteObjectId, canWriteTypeId, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, copyCurrentStructureExact, getCharacterEscapes, getHighestNonEscapedChar, getSchema, setCharacterEscapes, writeArray, writeArray, writeArray, writeArray, writeArrayPropertyStart, writeBinary, writeBinary, writeBinary, writeBinaryProperty, writeBooleanProperty, writeEmbeddedObject, writeNullProperty, writeNumber, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeNumberProperty, writeObjectId, writeObjectPropertyStart, writeObjectRef, writeOmittedProperty, writePOJOProperty, writeRaw, writeStringProperty, writeTypeId, writeTypePrefix, writeTypeSuffix

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_UNKNOWN_ELEMENT

      protected static final String DEFAULT_UNKNOWN_ELEMENT
      If we support optional definition of element names, this is the element name to use...
      See Also:
    • _xmlWriter

      protected final org.codehaus.stax2.XMLStreamWriter2 _xmlWriter
    • _originalXmlWriter

      protected final XMLStreamWriter _originalXmlWriter
    • _xmlPrettyPrinter

      protected final XmlPrettyPrinter _xmlPrettyPrinter
      We may need to use XML-specific indentation as well
    • _formatFeatures

      protected int _formatFeatures
      Bit flag composed of bits that indicate which XmlWriteFeatures are enabled.
    • _stax2Emulation

      protected final boolean _stax2Emulation
      Marker flag set if the underlying stream writer has to emulate Stax2 API: this is problematic if trying to use writeRaw(java.lang.String) calls.
    • _streamWriteContext

      protected tools.jackson.core.util.SimpleStreamWriteContext _streamWriteContext
      Object that keeps track of the current contextual state of the generator.
    • _nameProcessor

      protected XmlNameProcessor _nameProcessor
      Escapes names with invalid XML characters
      Since:
      2.14
    • _initialized

      protected boolean _initialized
      Marker set when initGenerator() has been called or not.
    • _nextName

      protected QName _nextName
      Element or attribute name to use for next output call. Assigned by either code that initiates serialization or bean serializer.
    • _nextIsAttribute

      protected boolean _nextIsAttribute
      Marker flag that indicates whether next name to write implies an attribute (true) or element (false)
    • _nextIsUnwrapped

      protected boolean _nextIsUnwrapped
      Marker flag used to indicate that the next write of a (property) value should be done without using surrounding start/end elements. Flag is to be cleared once unwrapping has been triggered once.
    • _nextIsCData

      protected boolean _nextIsCData
      Marker flag used to indicate that the next write of a (property) value should be as CData
    • _elementNameStack

      protected LinkedList<QName> _elementNameStack
      To support proper serialization of arrays it is necessary to keep stack of element names, so that we can "revert" to earlier
    • _nameToEncode

      protected XmlNameProcessor.XmlName _nameToEncode
      Reusable internal value object
  • Constructor Details

    • ToXmlGenerator

      public ToXmlGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int streamWriteFeatures, int xmlFeatures, XMLStreamWriter sw, XmlPrettyPrinter pp, XmlNameProcessor nameProcessor)
  • Method Details

    • initGenerator

      public void initGenerator() throws tools.jackson.core.JacksonException
      Method called before writing any other output, to optionally output XML declaration.
      Throws:
      tools.jackson.core.JacksonException
    • version

      public tools.jackson.core.Version version()
      Specified by:
      version in interface tools.jackson.core.Versioned
      Specified by:
      version in class tools.jackson.core.JsonGenerator
    • streamWriteContext

      public final tools.jackson.core.TokenStreamContext streamWriteContext()
      Specified by:
      streamWriteContext in class tools.jackson.core.JsonGenerator
    • currentValue

      public final Object currentValue()
      Specified by:
      currentValue in class tools.jackson.core.JsonGenerator
    • assignCurrentValue

      public final void assignCurrentValue(Object v)
      Specified by:
      assignCurrentValue in class tools.jackson.core.JsonGenerator
    • _constructDefaultPrettyPrinter

      protected tools.jackson.core.PrettyPrinter _constructDefaultPrettyPrinter()
      Overrides:
      _constructDefaultPrettyPrinter in class tools.jackson.core.base.GeneratorBase
    • streamWriteOutputTarget

      public Object streamWriteOutputTarget()
      Specified by:
      streamWriteOutputTarget in class tools.jackson.core.JsonGenerator
    • streamWriteOutputBuffered

      public int streamWriteOutputBuffered()
      Stax2 does not expose buffered content amount, so we can only return -1 from here
      Specified by:
      streamWriteOutputBuffered in class tools.jackson.core.JsonGenerator
    • isEnabled

      public final boolean isEnabled(XmlWriteFeature f)
    • configure

      public ToXmlGenerator configure(XmlWriteFeature f, boolean state)
    • has

      public boolean has(tools.jackson.core.StreamWriteCapability capability)
      Overrides:
      has in class tools.jackson.core.base.GeneratorBase
    • streamWriteCapabilities

      public tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamWriteCapability> streamWriteCapabilities()
      Specified by:
      streamWriteCapabilities in class tools.jackson.core.JsonGenerator
    • inRoot

      public boolean inRoot()
    • getPrettyPrinter

      public XmlPrettyPrinter getPrettyPrinter()
      Overrides:
      getPrettyPrinter in class tools.jackson.core.JsonGenerator
    • getStaxWriter

      public XMLStreamWriter getStaxWriter()
      Method that allows application direct access to underlying Stax XMLStreamWriter. Note that use of writer is discouraged, and may interfere with processing of this writer; however, occasionally it may be necessary.

      Note: writer instance will always be of type XMLStreamWriter2 (including Typed Access API) so upcasts are safe.

    • setNextIsAttribute

      public void setNextIsAttribute(boolean isAttribute)
    • setNextIsUnwrapped

      public void setNextIsUnwrapped(boolean isUnwrapped)
    • setNextIsCData

      public void setNextIsCData(boolean isCData)
    • setNextName

      public final void setNextName(QName name)
    • setNextNameIfMissing

      public final boolean setNextNameIfMissing(QName name)
      Method that does same as setNextName(javax.xml.namespace.QName), unless a name has already been set.
      Since:
      2.1.2
    • startWrappedValue

      public void startWrappedValue(QName wrapperName, QName wrappedName) throws tools.jackson.core.JacksonException
      Methdod called when a structured (collection, array, map) is being output.
      Parameters:
      wrapperName - Element used as wrapper around elements, if any (null if none)
      wrappedName - Element used around individual content items (can not be null)
      Throws:
      tools.jackson.core.JacksonException
    • finishWrappedValue

      public void finishWrappedValue(QName wrapperName, QName wrappedName) throws tools.jackson.core.JacksonException
      Method called after a structured collection output has completed
      Throws:
      tools.jackson.core.JacksonException
    • writeRepeatedPropertyName

      public tools.jackson.core.JsonGenerator writeRepeatedPropertyName() throws tools.jackson.core.JacksonException
      Trivial helper method called when to add a replicated wrapper name
      Throws:
      tools.jackson.core.JacksonException
    • writeName

      public tools.jackson.core.JsonGenerator writeName(tools.jackson.core.SerializableString name) throws tools.jackson.core.JacksonException
      Overrides:
      writeName in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeName

      public tools.jackson.core.JsonGenerator writeName(String name) throws tools.jackson.core.JacksonException
      Specified by:
      writeName in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writePropertyId

      public tools.jackson.core.JsonGenerator writePropertyId(long id) throws tools.jackson.core.JacksonException
      Specified by:
      writePropertyId in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeStartArray

      public tools.jackson.core.JsonGenerator writeStartArray() throws tools.jackson.core.JacksonException
      Specified by:
      writeStartArray in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeStartArray

      public tools.jackson.core.JsonGenerator writeStartArray(Object currValue) throws tools.jackson.core.JacksonException
      Specified by:
      writeStartArray in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeEndArray

      public tools.jackson.core.JsonGenerator writeEndArray() throws tools.jackson.core.JacksonException
      Specified by:
      writeEndArray in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeStartObject

      public tools.jackson.core.JsonGenerator writeStartObject() throws tools.jackson.core.JacksonException
      Specified by:
      writeStartObject in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeStartObject

      public tools.jackson.core.JsonGenerator writeStartObject(Object currValue) throws tools.jackson.core.JacksonException
      Specified by:
      writeStartObject in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeEndObject

      public tools.jackson.core.JsonGenerator writeEndObject() throws tools.jackson.core.JacksonException
      Specified by:
      writeEndObject in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _handleStartObject

      public final void _handleStartObject() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _handleEndObject

      public final void _handleEndObject() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • writeString

      public tools.jackson.core.JsonGenerator writeString(String text) throws tools.jackson.core.JacksonException
      Specified by:
      writeString in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeString

      public tools.jackson.core.JsonGenerator writeString(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      writeString in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeString

      public tools.jackson.core.JsonGenerator writeString(tools.jackson.core.SerializableString text) throws tools.jackson.core.JacksonException
      Overrides:
      writeString in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeRawUTF8String

      public tools.jackson.core.JsonGenerator writeRawUTF8String(byte[] text, int offset, int length) throws tools.jackson.core.JacksonException
      Specified by:
      writeRawUTF8String in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeUTF8String

      public tools.jackson.core.JsonGenerator writeUTF8String(byte[] text, int offset, int length) throws tools.jackson.core.JacksonException
      Specified by:
      writeUTF8String in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeRawValue

      public tools.jackson.core.JsonGenerator writeRawValue(String text) throws tools.jackson.core.JacksonException
      Overrides:
      writeRawValue in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeRawValue

      public tools.jackson.core.JsonGenerator writeRawValue(String text, int offset, int len) throws tools.jackson.core.JacksonException
      Overrides:
      writeRawValue in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeRawValue

      public tools.jackson.core.JsonGenerator writeRawValue(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Overrides:
      writeRawValue in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeRawValue

      public tools.jackson.core.JsonGenerator writeRawValue(tools.jackson.core.SerializableString text) throws tools.jackson.core.JacksonException
      Overrides:
      writeRawValue in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeRaw

      public tools.jackson.core.JsonGenerator writeRaw(String text) throws tools.jackson.core.JacksonException
      Specified by:
      writeRaw in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeRaw

      public tools.jackson.core.JsonGenerator writeRaw(String text, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      writeRaw in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeRaw

      public tools.jackson.core.JsonGenerator writeRaw(char[] text, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      writeRaw in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeRaw

      public tools.jackson.core.JsonGenerator writeRaw(char c) throws tools.jackson.core.JacksonException
      Specified by:
      writeRaw in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeBinary

      public tools.jackson.core.JsonGenerator writeBinary(tools.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws tools.jackson.core.JacksonException
      Specified by:
      writeBinary in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeBinary

      public int writeBinary(tools.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) throws tools.jackson.core.JacksonException
      Overrides:
      writeBinary in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • writeBoolean

      public tools.jackson.core.JsonGenerator writeBoolean(boolean value) throws tools.jackson.core.JacksonException
      Specified by:
      writeBoolean in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNull

      public tools.jackson.core.JsonGenerator writeNull() throws tools.jackson.core.JacksonException
      Specified by:
      writeNull in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(short v) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(int i) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(long l) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(double d) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(float f) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(BigDecimal dec) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(BigInteger value) throws tools.jackson.core.JacksonException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • writeNumber

      public tools.jackson.core.JsonGenerator writeNumber(String encodedValue) throws tools.jackson.core.JacksonException, UnsupportedOperationException
      Specified by:
      writeNumber in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
      UnsupportedOperationException
    • _verifyValueWrite

      protected final void _verifyValueWrite(String typeMsg) throws tools.jackson.core.JacksonException
      Specified by:
      _verifyValueWrite in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • flush

      public void flush() throws tools.jackson.core.JacksonException
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class tools.jackson.core.JsonGenerator
      Throws:
      tools.jackson.core.JacksonException
    • _closeInput

      protected void _closeInput() throws tools.jackson.core.JacksonException
      Specified by:
      _closeInput in class tools.jackson.core.base.GeneratorBase
      Throws:
      tools.jackson.core.JacksonException
    • _releaseBuffers

      protected void _releaseBuffers()
      Specified by:
      _releaseBuffers in class tools.jackson.core.base.GeneratorBase
    • checkNextIsUnwrapped

      protected boolean checkNextIsUnwrapped()
      Method called to see if unwrapping is required; and if so, clear the flag (so further calls will return 'false' unless state is re-set)
    • handleMissingName

      protected void handleMissingName()
    • _reportUnimplementedStax2

      protected void _reportUnimplementedStax2(String missingMethod) throws tools.jackson.core.JacksonException
      Method called in case access to native Stax2 API implementation is required.
      Throws:
      tools.jackson.core.JacksonException