public class JCardPrettyPrinter extends 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
Modifier and Type | Field and Description |
---|---|
static Object |
PROPERTY_VALUE
The value that is assigned to
JsonGenerator.setCurrentValue(java.lang.Object) to
let the pretty-printer know that a vCard property is currently being
written. |
Constructor and Description |
---|
JCardPrettyPrinter() |
JCardPrettyPrinter(JCardPrettyPrinter base) |
Modifier and Type | Method and Description |
---|---|
JCardPrettyPrinter |
createInstance() |
void |
indentArraysWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter) |
void |
indentObjectsWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter) |
void |
indentVCardPropertiesWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter) |
protected static boolean |
isInVCardProperty(com.fasterxml.jackson.core.JsonStreamContext context) |
void |
writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) |
void |
writeEndArray(com.fasterxml.jackson.core.JsonGenerator gen,
int numValues) |
void |
writeStartArray(com.fasterxml.jackson.core.JsonGenerator gen) |
_withSpaces, beforeArrayValues, beforeObjectEntries, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeEndObject, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartObject
public static final Object PROPERTY_VALUE
JsonGenerator.setCurrentValue(java.lang.Object)
to
let the pretty-printer know that a vCard property is currently being
written.public JCardPrettyPrinter()
public JCardPrettyPrinter(JCardPrettyPrinter base)
public JCardPrettyPrinter createInstance()
createInstance
in interface com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
createInstance
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
public void indentArraysWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter)
indentArraysWith
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
public void indentObjectsWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter)
indentObjectsWith
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
public void indentVCardPropertiesWith(com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter indenter)
protected static boolean isInVCardProperty(com.fasterxml.jackson.core.JsonStreamContext context)
public void writeStartArray(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeStartArray
in interface com.fasterxml.jackson.core.PrettyPrinter
writeStartArray
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeEndArray(com.fasterxml.jackson.core.JsonGenerator gen, int numValues) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeEndArray
in interface com.fasterxml.jackson.core.PrettyPrinter
writeEndArray
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
writeArrayValueSeparator
in interface com.fasterxml.jackson.core.PrettyPrinter
writeArrayValueSeparator
in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
IOException
Copyright © 2012–2023 Michael Angstadt. All rights reserved.