Package org.apache.uima.json.impl
Class JsonContentHandlerJacksonWrapper.UimaJsonPrettyPrinter
- java.lang.Object
-
- com.fasterxml.jackson.core.util.DefaultPrettyPrinter
-
- org.apache.uima.json.impl.JsonContentHandlerJacksonWrapper.UimaJsonPrettyPrinter
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.PrettyPrinter
,com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
,java.io.Serializable
- Enclosing class:
- JsonContentHandlerJacksonWrapper
private class JsonContentHandlerJacksonWrapper.UimaJsonPrettyPrinter extends com.fasterxml.jackson.core.util.DefaultPrettyPrinter implements com.fasterxml.jackson.core.PrettyPrinter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.NopIndenter
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
_arrayEmptySeparator, _arrayIndenter, _arrayValueSeparator, _nesting, _objectEmptySeparator, _objectEntrySeparator, _objectFieldValueSeparatorWithSpaces, _objectIndenter, _rootSeparator, _separators, _spacesInObjectEntries, DEFAULT_ROOT_VALUE_SEPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description private
UimaJsonPrettyPrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeArrayValues(com.fasterxml.jackson.core.JsonGenerator jg)
void
beforeObjectEntries(com.fasterxml.jackson.core.JsonGenerator jg)
private void
maybeOutputNl(com.fasterxml.jackson.core.JsonGenerator jg)
private void
maybeOutputNlIndent()
private void
maybeOutputNlOrBlank(com.fasterxml.jackson.core.JsonGenerator jg)
void
writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator jg)
void
writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator jg)
-
Methods inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
_withSpaces, createInstance, indentArraysWith, indentObjectsWith, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeEndArray, writeEndObject, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeObjectEntrySeparator
public void writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- Specified by:
writeObjectEntrySeparator
in interfacecom.fasterxml.jackson.core.PrettyPrinter
- Overrides:
writeObjectEntrySeparator
in classcom.fasterxml.jackson.core.util.DefaultPrettyPrinter
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
-
writeArrayValueSeparator
public void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- Specified by:
writeArrayValueSeparator
in interfacecom.fasterxml.jackson.core.PrettyPrinter
- Overrides:
writeArrayValueSeparator
in classcom.fasterxml.jackson.core.util.DefaultPrettyPrinter
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
-
beforeArrayValues
public void beforeArrayValues(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- Specified by:
beforeArrayValues
in interfacecom.fasterxml.jackson.core.PrettyPrinter
- Overrides:
beforeArrayValues
in classcom.fasterxml.jackson.core.util.DefaultPrettyPrinter
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
-
beforeObjectEntries
public void beforeObjectEntries(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- Specified by:
beforeObjectEntries
in interfacecom.fasterxml.jackson.core.PrettyPrinter
- Overrides:
beforeObjectEntries
in classcom.fasterxml.jackson.core.util.DefaultPrettyPrinter
- Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonGenerationException
-
maybeOutputNl
private void maybeOutputNl(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException
- Throws:
java.io.IOException
-
maybeOutputNlOrBlank
private void maybeOutputNlOrBlank(com.fasterxml.jackson.core.JsonGenerator jg) throws java.io.IOException
- Throws:
java.io.IOException
-
maybeOutputNlIndent
private void maybeOutputNlIndent() throws java.io.IOException
- Throws:
java.io.IOException
-
-