It is also used to output the START_ARRAY marker.Ībstract void writeBinary(Base64Variant b64variant, byte data, int offset, int len) It is used to output a field entry having JSON Array value. Void writeArrayFieldStart(String fieldName) It is an accessor, i.e., used to find out the version of the bundle provided by the current generator instance. The method is used to enable pretty-printing using the pretty default printer. It is used for defining the schema which will be used by the current generator.Ībstract JsonGenerator useDefaultPrettyPrinter() It allows overriding String used for separating root-level JSON values. JsonGenerator setRootValueSeparator(SerializableString sep) It is used to set a custom pretty printer, i.e., used for adding indentation to improve human readability. JsonGenerator setPrettyPrinter(PrettyPrinter pp) In order to escape all character codes above the specified code point, we request the generator by using this method. JsonGenerator setHighestNonEscapedChar(int charCode) In order to reset the states of all standard JsonGenerator.Features, we use this bulk set method. In order to set or reset the Object for using to write to use for writing Java objects as JsonContent, we use this method.Ībstract JsonGenerator setFeatureMask(int mask)-Bulk set method for (re)setting states of all standard JsonGenerator.Features It is used to define the custom escapes factory uses for JsonGenerators it creates.Ībstract JsonGenerator setCodec(ObjectCodec oc) JsonGenerator setCharacterEscapes(CharacterEscapes esc) It is used to check whether the given feature is enabled or not. It is used to determine whether the current generator is closed or not.Ībstract boolean isEnabled(JsonGenerator.Feature f) It is used to access the schema that the current parser uses if any. It is an accessor, i.e., used to check whether the current generator has a configured PrettyPrinter. It is used to get access to Object, i.e., used as the target for the generated output. It is an accessor method, i.e., used to test what is the highest unescaped character configured for this generator. In order to get the state of all standard JsonGenerator.Features, we use this bulk access method. It is used to access the Object used to write Java Object as JSON content. It is used to access the custom escapes factory uses for JsonGenerators it creates. flushing any buffered data to the underlying target. It is used to enable the given parser features.ġ. In order to copy the data of the current event and following events that it encloses pointed by the given parser instance, we use this method.Ībstract JsonGenerator disable(JsonGenerator.Feature f)Ībstract JsonGenerator enable(JsonGenerator.Feature f) In order to copy the data of the current event pointed by the given parser instance, we use this method. It is used to disable or enable the given feature. JsonGenerator configure(JsonGenerator.Feature f, boolean state) It is used for closing the current generator to stop writing content. It is used to check whether the underlying data format supports some kind of Type Ids natively or not.Ībstract void close() - Method called to close this generator so that no more content can be written. It is used to check whether the underlying data format supports some kind of Object Ids natively or not. It is used to check whether the underlying data format supports "native" binary data or not. It is used to check whether the given schema can be used with the current generator or not. The method is used for checking whether it is ok to omit the writing of Object fields or not.īoolean canUseSchema(FormatSchema schema) It is used for calling appropriate write method to given untyped Object.īoolean canOmitFields() - Introspection method to call to check whether it is ok to omit writing of Object fields or not. Protected void _writeSimpleObject(Object value) It is a helper method that is used to construct and throw JsonGenerationException with the specified base message. It is an object which is used for handling the pretty-printing at the time of output. Constructors of the JsonGenerator Class S.N. Protected PrettyPrinter _cfgPrettyPrinter
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |