|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.widget.ExtTreeJsonWriter
public class ExtTreeJsonWriter
Writes a resource tree in JSON format. This tree can be used by the EXT tree loader.
| Constructor Summary | |
|---|---|
ExtTreeJsonWriter(org.apache.sling.api.resource.ResourceResolver resolver,
org.apache.commons.collections.Predicate predicate,
int depth)
Creates a new EXT tree json writer |
|
| Method Summary | |
|---|---|
boolean |
isTidy()
Checks the tidy flag. |
void |
setTidy(boolean tidy)
Controls if the export should be nicely formatted. |
void |
write(Writer out,
org.apache.sling.api.resource.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtTreeJsonWriter(org.apache.sling.api.resource.ResourceResolver resolver,
org.apache.commons.collections.Predicate predicate,
int depth)
resolver - resource resolverpredicate - predicatedepth - maximal depth| Method Detail |
|---|
public 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 path
IOException - if an I/O error occurs
public void write(Writer out,
org.apache.sling.api.resource.Resource res)
throws IOException
out - writerres - start resource
IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||