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, format
public TidyJsonItemWriter(java.util.Set<java.lang.String> propertyNamesToIgnore)
propertyNamesToIgnore
- See javadoc of constructor of JsonItemWriter
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
node
- node to dumpw
- JSONWriter
maxRecursionLevels
- 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 JsonItemWriter
RepositoryException
JSONException
public void dump(NodeIterator it, JSONWriter w) throws RepositoryException, JSONException
it
- NodeIterator
w
- JSONWriter
RepositoryException
- if some error occursJSONException
- if some error occurspublic void dump(NodeIterator it, java.io.Writer out) throws RepositoryException, JSONException
dump
in class JsonItemWriter
JSONException
RepositoryException
public void dump(Property p, JSONWriter w) throws JSONException, RepositoryException
p
- property to dumpw
- JSONWriter
RepositoryException
- if some error occursJSONException
- if some error occurspublic void dump(Property p, java.io.Writer w) throws JSONException, ValueFormatException, RepositoryException
dump
in class JsonItemWriter
JSONException
ValueFormatException
RepositoryException
Copyright © 2010 - 2020 Adobe. All Rights Reserved