public class JCardPrettyPrinter extends DefaultPrettyPrinter
DefaultPrettyPrinter.FixedSpaceIndenter, DefaultPrettyPrinter.Indenter, 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. |
_arrayIndenter, _nesting, _objectFieldValueSeparatorWithSpaces, _objectIndenter, _rootSeparator, _separators, _spacesInObjectEntries, DEFAULT_ROOT_VALUE_SEPARATORDEFAULT_SEPARATORS| Constructor and Description |
|---|
JCardPrettyPrinter() |
JCardPrettyPrinter(JCardPrettyPrinter base) |
| Modifier and Type | Method and Description |
|---|---|
JCardPrettyPrinter |
createInstance() |
void |
indentArraysWith(DefaultPrettyPrinter.Indenter indenter) |
void |
indentObjectsWith(DefaultPrettyPrinter.Indenter indenter) |
void |
indentVCardPropertiesWith(DefaultPrettyPrinter.Indenter indenter) |
protected static boolean |
isInVCardProperty(JsonStreamContext context) |
void |
writeArrayValueSeparator(JsonGenerator gen) |
void |
writeEndArray(JsonGenerator gen,
int numValues) |
void |
writeStartArray(JsonGenerator gen) |
_withSpaces, beforeArrayValues, beforeObjectEntries, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeEndObject, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartObjectpublic 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 Instantiatable<DefaultPrettyPrinter>createInstance in class DefaultPrettyPrinterpublic void indentArraysWith(DefaultPrettyPrinter.Indenter indenter)
indentArraysWith in class DefaultPrettyPrinterpublic void indentObjectsWith(DefaultPrettyPrinter.Indenter indenter)
indentObjectsWith in class DefaultPrettyPrinterpublic void indentVCardPropertiesWith(DefaultPrettyPrinter.Indenter indenter)
protected static boolean isInVCardProperty(JsonStreamContext context)
public void writeStartArray(JsonGenerator gen) throws IOException, JsonGenerationException
writeStartArray in interface PrettyPrinterwriteStartArray in class DefaultPrettyPrinterIOExceptionJsonGenerationExceptionpublic void writeEndArray(JsonGenerator gen, int numValues) throws IOException, JsonGenerationException
writeEndArray in interface PrettyPrinterwriteEndArray in class DefaultPrettyPrinterIOExceptionJsonGenerationExceptionpublic void writeArrayValueSeparator(JsonGenerator gen) throws IOException
writeArrayValueSeparator in interface PrettyPrinterwriteArrayValueSeparator in class DefaultPrettyPrinterIOExceptionCopyright © 2012–2018 Michael Angstadt. All rights reserved.