com.agilejava.maven.docbkx
Class EntityFileParser

java.lang.Object
  extended by com.agilejava.maven.docbkx.EntityFileParser

public class EntityFileParser
extends java.lang.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.
 
Constructor Summary
EntityFileParser()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests the parser.
static void parse(java.io.InputStream in, EntityFileParser.EntityVisitor visitor)
          Parses the entity file, invoking operations on the visitor for every entity found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityFileParser

public EntityFileParser()
Method Detail

parse

public static void parse(java.io.InputStream in,
                         EntityFileParser.EntityVisitor visitor)
                  throws java.io.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:
java.io.IOException - The exception thrown when we can't read from the InputStream.

main

public static final void main(java.lang.String[] args)
Tests the parser. TODO: Take this out.

Parameters:
args -


Copyright © 2006-2011. All Rights Reserved.