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. |