@Deprecated public class ResourceTraversor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceTraversor.Entry
Deprecated.
|
| Constructor and Description |
|---|
ResourceTraversor(int levels,
long maxResources,
Resource resource,
boolean tidy)
Deprecated.
Create a ResourceTraversor, optionally limiting recursion and total number of resources
|
| Modifier and Type | Method and Description |
|---|---|
int |
collectResources()
Deprecated.
Recursive descent from startResource, collecting JSONObjects into
startObject.
|
long |
getCount()
Deprecated.
|
JSONObject |
getJSONObject()
Deprecated.
|
public ResourceTraversor(int levels,
long maxResources,
Resource resource,
boolean tidy)
throws JSONException
levels - recursion levels limit, -1 means no limitmaxResources - maximum number of resources to collect, ignored if levels == 1resource - the root resource to traversetidy - not usedJSONExceptionpublic int collectResources()
throws RecursionTooDeepException,
JSONException
JSONExceptionRecursionTooDeepExceptionpublic long getCount()
public JSONObject getJSONObject()
Copyright © 2010 - 2020 Adobe. All Rights Reserved