public class ResourceTraversor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceTraversor.Entry |
| Constructor and Description |
|---|
ResourceTraversor(int levels,
long maxResources,
Resource resource,
boolean tidy) |
| Modifier and Type | Method and Description |
|---|---|
int |
collectResources()
Recursive descent from startResource, collecting JSONObjects into
startObject.
|
long |
getCount() |
JSONObject |
getJSONObject() |
public ResourceTraversor(int levels,
long maxResources,
Resource resource,
boolean tidy)
throws JSONException
JSONExceptionpublic int collectResources()
throws RecursionTooDeepException,
JSONException
JSONExceptionRecursionTooDeepExceptionpublic long getCount()
public JSONObject getJSONObject()
Copyright © 2015 The Apache Software Foundation. All rights reserved.