public class ExtTreeJsonWriter
extends java.lang.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(java.io.Writer out,
Resource res)
Write the given resource tree to the given writer.
|
void |
write(java.io.Writer out,
java.lang.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(java.io.Writer out,
java.lang.String path)
throws java.io.IOException
path to the given writer.out - writerpath - start pathjava.io.IOException - if an I/O error occurspublic void write(java.io.Writer out,
Resource res)
throws java.io.IOException
out - writerres - start resourcejava.io.IOException - if an I/O error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"