public class EntityFileParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
EntityFileParser.EntityVisitor
A simple interface to be implemented by objects traversing the contents
of an entity file.
|
| Constructor and Description |
|---|
EntityFileParser() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Tests the parser.
|
static void |
parse(InputStream in,
EntityFileParser.EntityVisitor visitor)
Parses the entity file, invoking operations on the visitor for every entity found.
|
public static void parse(InputStream in, EntityFileParser.EntityVisitor visitor) throws IOException
in - The InputStream to parse.visitor - The visitor receiving the events.IOException - The exception thrown when we can't read from the InputStream.public static final void main(String[] args)
args - Copyright © 2006–2015 Wilfred Springer, Cedric Pronzato. All rights reserved.