Package org.apache.johnzon.mapper
Class DynamicMappingGenerator.SkipEnclosingWriteEnd
- java.lang.Object
-
- org.apache.johnzon.mapper.DynamicMappingGenerator
-
- org.apache.johnzon.mapper.DynamicMappingGenerator.SkipEnclosingWriteEnd
-
- All Implemented Interfaces:
MappingGenerator
- Enclosing class:
- DynamicMappingGenerator
public static class DynamicMappingGenerator.SkipEnclosingWriteEnd extends DynamicMappingGenerator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.johnzon.mapper.DynamicMappingGenerator
DynamicMappingGenerator.InObjectOrPrimitiveJsonGenerator, DynamicMappingGenerator.SkipEnclosingWriteEnd
-
-
Field Summary
Fields Modifier and Type Field Description private static Runnable
NOOP
private jakarta.json.stream.JsonGenerator
rawGenerator
private DynamicMappingGenerator.SkipLastWriteEndGenerator
skippingGenerator
-
Fields inherited from class org.apache.johnzon.mapper.DynamicMappingGenerator
generator
-
-
Constructor Summary
Constructors Constructor Description SkipEnclosingWriteEnd(MappingGenerator delegate, String keyName, jakarta.json.stream.JsonGenerator generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.json.stream.JsonGenerator
getJsonGenerator()
protected jakarta.json.stream.JsonGenerator
getRawJsonGenerator()
protected void
reset()
-
Methods inherited from class org.apache.johnzon.mapper.DynamicMappingGenerator
flushIfNeeded, writeObject, writeObject
-
-
-
-
Field Detail
-
NOOP
private static final Runnable NOOP
-
rawGenerator
private final jakarta.json.stream.JsonGenerator rawGenerator
-
skippingGenerator
private DynamicMappingGenerator.SkipLastWriteEndGenerator skippingGenerator
-
-
Constructor Detail
-
SkipEnclosingWriteEnd
public SkipEnclosingWriteEnd(MappingGenerator delegate, String keyName, jakarta.json.stream.JsonGenerator generator)
-
-
Method Detail
-
getRawJsonGenerator
protected jakarta.json.stream.JsonGenerator getRawJsonGenerator()
- Overrides:
getRawJsonGenerator
in classDynamicMappingGenerator
-
getJsonGenerator
public jakarta.json.stream.JsonGenerator getJsonGenerator()
- Specified by:
getJsonGenerator
in interfaceMappingGenerator
- Overrides:
getJsonGenerator
in classDynamicMappingGenerator
- Returns:
- the
JsonGenerator
used internally to write the JSON output.
-
reset
protected void reset()
- Overrides:
reset
in classDynamicMappingGenerator
-
-