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 all Nodes of given NodeIterator 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)
propertyNamesToIgnore - See javadoc of constructor of JsonItemWriterpublic 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
node - node to dumpw - JSONWritermaxRecursionLevels - max recursion levelRepositoryException - if some error occursJSONException - if some error occurspublic 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
it - NodeIteratorw - JSONWriterRepositoryException - if some error occursJSONException - if some error occurspublic void dump(NodeIterator it, java.io.Writer out) throws RepositoryException, JSONException
dump in class JsonItemWriterJSONExceptionRepositoryExceptionpublic void dump(Property p, JSONWriter w) throws JSONException, RepositoryException
p - property to dumpw - JSONWriterRepositoryException - if some error occursJSONException - if some error occurspublic void dump(Property p, java.io.Writer w) throws JSONException, ValueFormatException, RepositoryException
dump in class JsonItemWriterJSONExceptionValueFormatExceptionRepositoryExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved