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
JSONException
public int collectResources() throws RecursionTooDeepException, JSONException
JSONException
RecursionTooDeepException
public long getCount()
public JSONObject getJSONObject()
Copyright © 2014 The Apache Software Foundation. All rights reserved.