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(javax.jcr.NodeIterator it,
JSONWriter w)
Dump all Nodes of given NodeIterator in JSON
|
void |
dump(javax.jcr.NodeIterator it,
java.io.Writer out)
Dump all Nodes of given NodeIterator in JSON
|
void |
dump(javax.jcr.Node node,
JSONWriter w,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(javax.jcr.Node node,
java.io.Writer w,
int maxRecursionLevels)
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(javax.jcr.Property p,
JSONWriter w)
Dump the property in JSON
|
void |
dump(javax.jcr.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(javax.jcr.Node node,
JSONWriter w,
int maxRecursionLevels)
throws javax.jcr.RepositoryException,
JSONException
node - node to dumpw - JSONWritermaxRecursionLevels - max recursion leveljavax.jcr.RepositoryException - if some error occursJSONException - if some error occurspublic void dump(javax.jcr.Node node,
java.io.Writer w,
int maxRecursionLevels)
throws javax.jcr.RepositoryException,
JSONException
dump in class JsonItemWriterjavax.jcr.RepositoryExceptionJSONExceptionpublic void dump(javax.jcr.NodeIterator it,
JSONWriter w)
throws javax.jcr.RepositoryException,
JSONException
it - NodeIteratorw - JSONWriterjavax.jcr.RepositoryException - if some error occursJSONException - if some error occurspublic void dump(javax.jcr.NodeIterator it,
java.io.Writer out)
throws javax.jcr.RepositoryException,
JSONException
dump in class JsonItemWriterJSONExceptionjavax.jcr.RepositoryExceptionpublic void dump(javax.jcr.Property p,
JSONWriter w)
throws JSONException,
javax.jcr.RepositoryException
p - property to dumpw - JSONWriterjavax.jcr.RepositoryException - if some error occursJSONException - if some error occurspublic void dump(javax.jcr.Property p,
java.io.Writer w)
throws JSONException,
javax.jcr.ValueFormatException,
javax.jcr.RepositoryException
dump in class JsonItemWriterJSONExceptionjavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionCopyright © 2010 - 2025 Adobe. All Rights Reserved