public class ExtTreeJsonWriter extends Object
Constructor and Description |
---|
ExtTreeJsonWriter(ResourceResolver resolver,
org.apache.commons.collections.Predicate predicate,
int depth)
Creates a new EXT tree json writer
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTidy()
Checks the tidy flag.
|
void |
setTidy(boolean tidy)
Controls if the export should be nicely formatted.
|
void |
write(Writer out,
Resource res)
Write the given resource tree to the given writer.
|
void |
write(Writer out,
String path)
Write the resource tree starting at
path to the given writer. |
public ExtTreeJsonWriter(ResourceResolver resolver, org.apache.commons.collections.Predicate predicate, int depth)
resolver
- resource resolverpredicate
- predicatedepth
- maximal depthpublic boolean isTidy()
true
if export is tidy.public void setTidy(boolean tidy)
tidy
- set to true
for tidy.public void write(Writer out, String path) throws IOException
path
to the given writer.out
- writerpath
- start pathIOException
- if an I/O error occurspublic void write(Writer out, Resource res) throws IOException
out
- writerres
- start resourceIOException
- if an I/O error occurs"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"