LBJ2.parse
Class ChildrenFromVectors

java.lang.Object
  extended by LBJ2.parse.ChildrenFromVectors
All Implemented Interfaces:
Parser

public class ChildrenFromVectors
extends java.lang.Object
implements Parser

Use this parser in conjunction with another parser that returns LinkedVectors, and this parser will return their LinkedChildren.


Field Summary
protected  LinkedChild next
          The next child to be returned.
protected  Parser parser
          A parser that returns LinkedVectors.
 
Constructor Summary
ChildrenFromVectors(Parser p)
          Creates the parser.
 
Method Summary
 java.lang.Object next()
          Returns the next LinkedChild parsed.
 void reset()
          Sets this parser back to the beginning of the raw data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

protected Parser parser
A parser that returns LinkedVectors.


next

protected LinkedChild next
The next child to be returned.

Constructor Detail

ChildrenFromVectors

public ChildrenFromVectors(Parser p)
Creates the parser.

Parameters:
p - A parser that returns LinkedVectors.
Method Detail

next

public java.lang.Object next()
Returns the next LinkedChild parsed.

Specified by:
next in interface Parser
Returns:
The next LinkedChild parsed, or null if there are no more children in the stream.

reset

public void reset()
Sets this parser back to the beginning of the raw data.

Specified by:
reset in interface Parser