public class ResourceParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceParser.ResourceEntry
Information about a specific resource.
|
static interface |
ResourceParser.ResourceHandler
The interface that a callback resource handler must support.
|
| Constructor and Description |
|---|
ResourceParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(ResourceParser.ResourceHandler handler)
Adds a resource handler to the parser.
|
void |
parse()
Parse the Resource file.
|
void |
setURL(URL url)
Set the URL for the resource file to be parsed.
|
public ResourceParser()
public void setURL(URL url)
url - location of the resource datapublic void addHandler(ResourceParser.ResourceHandler handler)
handler - a handler for a specific resource typepublic void parse()
throws IOException
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved