com.agilejava.maven.docbkx
Class EntityFileParser
java.lang.Object
com.agilejava.maven.docbkx.EntityFileParser
public class EntityFileParser
- extends Object
A crude parser for parsing an entity file. Required to extract the files describing the
parameters from the parameter declarations.
- Author:
- Wilfred Springer
Nested Class Summary |
static interface |
EntityFileParser.EntityVisitor
A simple interface to be implemented by objects traversing the contents
of an entity file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityFileParser
public EntityFileParser()
parse
public static void parse(InputStream in,
EntityFileParser.EntityVisitor visitor)
throws IOException
- Parses the entity file, invoking operations on the visitor for every entity found.
- Parameters:
in
- The InputStream to parse.visitor
- The visitor receiving the events.
- Throws:
IOException
- The exception thrown when we can't read from the InputStream.
main
public static final void main(String[] args)
- Tests the parser. TODO: Take this out.
- Parameters:
args
-
Copyright © 2006-2013. All Rights Reserved.