@Deprecated
public class JsonItemWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
DATE_FORMAT_LOCALE
Deprecated.
Used to format date values
|
static java.lang.String |
ECMA_DATE_FORMAT
Deprecated.
Used to format date values
|
Constructor and Description |
---|
JsonItemWriter(java.util.Set<java.lang.String> propertyNamesToIgnore)
Deprecated.
Create a JsonItemWriter
|
Modifier and Type | Method and Description |
---|---|
void |
dump(NodeIterator it,
java.io.Writer out)
Deprecated.
Dump all Nodes of given NodeIterator in JSON
|
void |
dump(Node node,
java.io.Writer w,
int maxRecursionLevels)
Deprecated.
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(Node node,
java.io.Writer w,
int maxRecursionLevels,
boolean tidy)
Deprecated.
Dump given node in JSON, optionally recursing into its child nodes
|
void |
dump(Property p,
java.io.Writer w)
Deprecated.
Dump given property in JSON
|
static java.lang.String |
format(java.util.Calendar date)
Deprecated.
|
public static final java.lang.String ECMA_DATE_FORMAT
public static final java.util.Locale DATE_FORMAT_LOCALE
public JsonItemWriter(java.util.Set<java.lang.String> propertyNamesToIgnore)
propertyNamesToIgnore
- if not null, a property having a name from
this set of values is ignored. TODO we should use a filtering
interface to make the selection of which Nodes and Properties
to dump more flexible.public void dump(NodeIterator it, java.io.Writer out) throws RepositoryException, JSONException
JSONException
RepositoryException
public void dump(Node node, java.io.Writer w, int maxRecursionLevels) throws RepositoryException, JSONException
RepositoryException
JSONException
public void dump(Node node, java.io.Writer w, int maxRecursionLevels, boolean tidy) throws RepositoryException, JSONException
tidy
- if true
the json dump is nicely formattedRepositoryException
JSONException
public void dump(Property p, java.io.Writer w) throws JSONException, ValueFormatException, RepositoryException
JSONException
ValueFormatException
RepositoryException
public static java.lang.String format(java.util.Calendar date)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"