Class WidgetJsonGenerator

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.Versioned, java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class WidgetJsonGenerator
    extends com.fasterxml.jackson.core.JsonGenerator
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator

        com.fasterxml.jackson.core.JsonGenerator.Feature
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.core.JsonGenerator

        _cfgPrettyPrinter
    • Constructor Summary

      Constructors 
      Constructor Description
      WidgetJsonGenerator​(com.fasterxml.jackson.core.JsonGenerator generator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canUseSchema​(com.fasterxml.jackson.core.FormatSchema schema)  
      void close()  
      void copyCurrentEvent​(com.fasterxml.jackson.core.JsonParser jsonParser)  
      void copyCurrentStructure​(com.fasterxml.jackson.core.JsonParser jsonParser)  
      com.fasterxml.jackson.core.JsonGenerator disable​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)  
      com.fasterxml.jackson.core.JsonGenerator enable​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)  
      void flush()  
      com.fasterxml.jackson.core.io.CharacterEscapes getCharacterEscapes()  
      com.fasterxml.jackson.core.ObjectCodec getCodec()  
      int getFeatureMask()  
      int getHighestEscapedChar()  
      com.fasterxml.jackson.core.JsonStreamContext getOutputContext()  
      java.lang.Object getOutputTarget()  
      boolean isClosed()  
      boolean isEnabled​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)  
      com.fasterxml.jackson.core.JsonGenerator setCharacterEscapes​(com.fasterxml.jackson.core.io.CharacterEscapes esc)  
      com.fasterxml.jackson.core.JsonGenerator setCodec​(com.fasterxml.jackson.core.ObjectCodec objectCodec)  
      com.fasterxml.jackson.core.JsonGenerator setFeatureMask​(int values)  
      com.fasterxml.jackson.core.JsonGenerator setHighestNonEscapedChar​(int charCode)  
      com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter​(com.fasterxml.jackson.core.PrettyPrinter pp)  
      void setSchema​(com.fasterxml.jackson.core.FormatSchema schema)  
      com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()  
      com.fasterxml.jackson.core.Version version()  
      void writeBinary​(byte[] data)  
      void writeBinary​(byte[] data, int offset, int len)  
      void writeBinary​(com.fasterxml.jackson.core.Base64Variant base64Variant, byte[] bytes, int i, int i1)  
      int writeBinary​(com.fasterxml.jackson.core.Base64Variant bv, java.io.InputStream data, int dataLength)  
      void writeBoolean​(boolean b)  
      void writeEndArray()  
      void writeEndObject()  
      void writeFieldName​(com.fasterxml.jackson.core.io.SerializedString name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811, use writeFieldName(SerializableString) instead
      void writeFieldName​(com.fasterxml.jackson.core.SerializableString name)  
      void writeFieldName​(java.lang.String s)  
      void writeNull()  
      void writeNumber​(double v)  
      void writeNumber​(float v)  
      void writeNumber​(int i)  
      void writeNumber​(long l)  
      void writeNumber​(java.lang.String s)  
      void writeNumber​(java.math.BigDecimal bigDecimal)  
      void writeNumber​(java.math.BigInteger bigInteger)  
      void writeObject​(java.lang.Object o)  
      void writeRaw​(char c)  
      void writeRaw​(char[] chars, int i, int i1)  
      void writeRaw​(java.lang.String s)  
      void writeRaw​(java.lang.String s, int i, int i1)  
      void writeRawUTF8String​(byte[] bytes, int i, int i1)  
      void writeRawValue​(char[] chars, int i, int i1)  
      void writeRawValue​(java.lang.String s)  
      void writeRawValue​(java.lang.String s, int i, int i1)  
      void writeStartArray()  
      void writeStartObject()  
      void writeString​(char[] chars, int i, int i1)  
      void writeString​(com.fasterxml.jackson.core.SerializableString text)  
      void writeString​(java.lang.String s)  
      void writeStringField​(java.lang.String fieldName, java.lang.String value)  
      void writeTree​(com.fasterxml.jackson.core.TreeNode rootNode)  
      void writeTree​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 1811, use writeTree(TreeNode) instead
      void writeUTF8String​(byte[] bytes, int i, int i1)  
      • Methods inherited from class com.fasterxml.jackson.core.JsonGenerator

        _copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, canOmitFields, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, getCurrentValue, getFormatFeatures, getOutputBuffered, getPrettyPrinter, getSchema, isEnabled, overrideFormatFeatures, overrideStdFeatures, setCurrentValue, setRootValueSeparator, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeRaw, writeRawValue, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeString, writeTypeId, writeTypePrefix, writeTypeSuffix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WidgetJsonGenerator

        public WidgetJsonGenerator​(com.fasterxml.jackson.core.JsonGenerator generator)
    • Method Detail

      • setSchema

        public void setSchema​(com.fasterxml.jackson.core.FormatSchema schema)
        Overrides:
        setSchema in class com.fasterxml.jackson.core.JsonGenerator
      • canUseSchema

        public boolean canUseSchema​(com.fasterxml.jackson.core.FormatSchema schema)
        Overrides:
        canUseSchema in class com.fasterxml.jackson.core.JsonGenerator
      • version

        public com.fasterxml.jackson.core.Version version()
        Specified by:
        version in interface com.fasterxml.jackson.core.Versioned
        Specified by:
        version in class com.fasterxml.jackson.core.JsonGenerator
      • getOutputTarget

        public java.lang.Object getOutputTarget()
        Overrides:
        getOutputTarget in class com.fasterxml.jackson.core.JsonGenerator
      • enable

        public com.fasterxml.jackson.core.JsonGenerator enable​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)
        Specified by:
        enable in class com.fasterxml.jackson.core.JsonGenerator
      • disable

        public com.fasterxml.jackson.core.JsonGenerator disable​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)
        Specified by:
        disable in class com.fasterxml.jackson.core.JsonGenerator
      • isEnabled

        public boolean isEnabled​(com.fasterxml.jackson.core.JsonGenerator.Feature feature)
        Specified by:
        isEnabled in class com.fasterxml.jackson.core.JsonGenerator
      • getFeatureMask

        public int getFeatureMask()
        Specified by:
        getFeatureMask in class com.fasterxml.jackson.core.JsonGenerator
      • setFeatureMask

        public com.fasterxml.jackson.core.JsonGenerator setFeatureMask​(int values)
        Specified by:
        setFeatureMask in class com.fasterxml.jackson.core.JsonGenerator
      • setCodec

        public com.fasterxml.jackson.core.JsonGenerator setCodec​(com.fasterxml.jackson.core.ObjectCodec objectCodec)
        Specified by:
        setCodec in class com.fasterxml.jackson.core.JsonGenerator
      • getCodec

        public com.fasterxml.jackson.core.ObjectCodec getCodec()
        Specified by:
        getCodec in class com.fasterxml.jackson.core.JsonGenerator
      • setPrettyPrinter

        public com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter​(com.fasterxml.jackson.core.PrettyPrinter pp)
        Overrides:
        setPrettyPrinter in class com.fasterxml.jackson.core.JsonGenerator
      • useDefaultPrettyPrinter

        public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
        Specified by:
        useDefaultPrettyPrinter in class com.fasterxml.jackson.core.JsonGenerator
      • setHighestNonEscapedChar

        public com.fasterxml.jackson.core.JsonGenerator setHighestNonEscapedChar​(int charCode)
        Overrides:
        setHighestNonEscapedChar in class com.fasterxml.jackson.core.JsonGenerator
      • getHighestEscapedChar

        public int getHighestEscapedChar()
        Overrides:
        getHighestEscapedChar in class com.fasterxml.jackson.core.JsonGenerator
      • getCharacterEscapes

        public com.fasterxml.jackson.core.io.CharacterEscapes getCharacterEscapes()
        Overrides:
        getCharacterEscapes in class com.fasterxml.jackson.core.JsonGenerator
      • setCharacterEscapes

        public com.fasterxml.jackson.core.JsonGenerator setCharacterEscapes​(com.fasterxml.jackson.core.io.CharacterEscapes esc)
        Overrides:
        setCharacterEscapes in class com.fasterxml.jackson.core.JsonGenerator
      • writeStartArray

        public void writeStartArray()
                             throws java.io.IOException
        Specified by:
        writeStartArray in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeEndArray

        public void writeEndArray()
                           throws java.io.IOException
        Specified by:
        writeEndArray in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeStartObject

        public void writeStartObject()
                              throws java.io.IOException
        Specified by:
        writeStartObject in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeEndObject

        public void writeEndObject()
                            throws java.io.IOException
        Specified by:
        writeEndObject in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeFieldName

        public void writeFieldName​(java.lang.String s)
                            throws java.io.IOException
        Specified by:
        writeFieldName in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeFieldName

        @Deprecated(since="1811",
                    forRemoval=true)
        public void writeFieldName​(com.fasterxml.jackson.core.io.SerializedString name)
                            throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811, use writeFieldName(SerializableString) instead
        Throws:
        java.io.IOException
      • writeFieldName

        public void writeFieldName​(com.fasterxml.jackson.core.SerializableString name)
                            throws java.io.IOException
        Specified by:
        writeFieldName in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeString

        public void writeString​(java.lang.String s)
                         throws java.io.IOException
        Specified by:
        writeString in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeString

        public void writeString​(char[] chars,
                                int i,
                                int i1)
                         throws java.io.IOException
        Specified by:
        writeString in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeString

        public void writeString​(com.fasterxml.jackson.core.SerializableString text)
                         throws java.io.IOException
        Specified by:
        writeString in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRawUTF8String

        public void writeRawUTF8String​(byte[] bytes,
                                       int i,
                                       int i1)
                                throws java.io.IOException
        Specified by:
        writeRawUTF8String in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeUTF8String

        public void writeUTF8String​(byte[] bytes,
                                    int i,
                                    int i1)
                             throws java.io.IOException
        Specified by:
        writeUTF8String in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRaw

        public void writeRaw​(java.lang.String s)
                      throws java.io.IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRaw

        public void writeRaw​(java.lang.String s,
                             int i,
                             int i1)
                      throws java.io.IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRaw

        public void writeRaw​(char[] chars,
                             int i,
                             int i1)
                      throws java.io.IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRaw

        public void writeRaw​(char c)
                      throws java.io.IOException
        Specified by:
        writeRaw in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRawValue

        public void writeRawValue​(java.lang.String s)
                           throws java.io.IOException
        Specified by:
        writeRawValue in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRawValue

        public void writeRawValue​(java.lang.String s,
                                  int i,
                                  int i1)
                           throws java.io.IOException
        Specified by:
        writeRawValue in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeRawValue

        public void writeRawValue​(char[] chars,
                                  int i,
                                  int i1)
                           throws java.io.IOException
        Specified by:
        writeRawValue in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeBinary

        public void writeBinary​(com.fasterxml.jackson.core.Base64Variant base64Variant,
                                byte[] bytes,
                                int i,
                                int i1)
                         throws java.io.IOException
        Specified by:
        writeBinary in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeBinary

        public void writeBinary​(byte[] data,
                                int offset,
                                int len)
                         throws java.io.IOException
        Overrides:
        writeBinary in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeBinary

        public void writeBinary​(byte[] data)
                         throws java.io.IOException
        Overrides:
        writeBinary in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeBinary

        public int writeBinary​(com.fasterxml.jackson.core.Base64Variant bv,
                               java.io.InputStream data,
                               int dataLength)
                        throws java.io.IOException
        Specified by:
        writeBinary in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(int i)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(long l)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(java.math.BigInteger bigInteger)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(double v)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(float v)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(java.math.BigDecimal bigDecimal)
                         throws java.io.IOException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNumber

        public void writeNumber​(java.lang.String s)
                         throws java.io.IOException,
                                java.lang.UnsupportedOperationException
        Specified by:
        writeNumber in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
        java.lang.UnsupportedOperationException
      • writeBoolean

        public void writeBoolean​(boolean b)
                          throws java.io.IOException
        Specified by:
        writeBoolean in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeNull

        public void writeNull()
                       throws java.io.IOException
        Specified by:
        writeNull in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeObject

        public void writeObject​(java.lang.Object o)
                         throws java.io.IOException
        Specified by:
        writeObject in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeTree

        @Deprecated(since="1811",
                    forRemoval=true)
        public void writeTree​(com.fasterxml.jackson.databind.JsonNode jsonNode)
                       throws java.io.IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811, use writeTree(TreeNode) instead
        Throws:
        java.io.IOException
      • writeTree

        public void writeTree​(com.fasterxml.jackson.core.TreeNode rootNode)
                       throws java.io.IOException
        Specified by:
        writeTree in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • writeStringField

        public void writeStringField​(java.lang.String fieldName,
                                     java.lang.String value)
                              throws java.io.IOException
        Overrides:
        writeStringField in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • copyCurrentEvent

        public void copyCurrentEvent​(com.fasterxml.jackson.core.JsonParser jsonParser)
                              throws java.io.IOException
        Overrides:
        copyCurrentEvent in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • copyCurrentStructure

        public void copyCurrentStructure​(com.fasterxml.jackson.core.JsonParser jsonParser)
                                  throws java.io.IOException
        Overrides:
        copyCurrentStructure in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • getOutputContext

        public com.fasterxml.jackson.core.JsonStreamContext getOutputContext()
        Specified by:
        getOutputContext in class com.fasterxml.jackson.core.JsonGenerator
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in class com.fasterxml.jackson.core.JsonGenerator
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class com.fasterxml.jackson.core.JsonGenerator
        Throws:
        java.io.IOException