public class TidyJsonItemWriter extends JsonItemWriter
TidyJSONWriter.DATE_FORMAT_LOCALE, ECMA_DATE_FORMAT| Constructor and Description |
|---|
TidyJsonItemWriter(java.util.Set<java.lang.String> propertyNamesToIgnore)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(NodeIterator it,
JSONWriter w)
Dump all Nodes of given NodeIterator in JSON
|
void |
dump(NodeIterator it,
java.io.Writer out)
Dump given property in JSON
|
void |
dump(Node node,
JSONWriter w,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(Node node,
java.io.Writer w,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(Property p,
JSONWriter w)
Dump the property in JSON
|
void |
dump(Property p,
java.io.Writer w)
Dump given property in JSON
|
boolean |
isTidy()
Checks if the output is nicely formatted.
|
void |
setTidy(boolean tidy)
Controls if output should be nicely formatted.
|
dump, formatpublic TidyJsonItemWriter(java.util.Set<java.lang.String> propertyNamesToIgnore)
public boolean isTidy()
true if nicely formattedpublic void setTidy(boolean tidy)
tidy - true to nicely format.public void dump(Node node,
JSONWriter w,
int maxRecursionLevels)
throws RepositoryException,
JSONException
RepositoryExceptionJSONExceptionpublic void dump(Node node,
java.io.Writer w,
int maxRecursionLevels)
throws RepositoryException,
JSONException
dump in class JsonItemWriterRepositoryExceptionJSONExceptionpublic void dump(NodeIterator it,
JSONWriter w)
throws RepositoryException,
JSONException
JSONExceptionRepositoryExceptionpublic void dump(NodeIterator it,
java.io.Writer out)
throws RepositoryException,
JSONException
dump in class JsonItemWriterRepositoryExceptionJSONExceptionpublic void dump(Property p,
JSONWriter w)
throws JSONException,
RepositoryException
JSONExceptionRepositoryExceptionpublic void dump(Property p,
java.io.Writer w)
throws JSONException,
ValueFormatException,
RepositoryException
dump in class JsonItemWriterJSONExceptionValueFormatExceptionRepositoryException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"