public class RecordStack extends Object
push and pop operations for
Record objects created by MarcXmlParser.| Constructor and Description |
|---|
RecordStack()
Default constuctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Called when the end of the document is reached.
|
boolean |
hasNext()
Returns true if there are more
Record objects to expect,
false otherwise. |
void |
passException(RuntimeException e)
Passes the exception to the thread where the MarcXMLReader is running, so
that the next() call that is blocked waiting for this thread, will
receive the exception.
|
Record |
pop()
Removes the
Record object from the stack and returns that
object. |
void |
push(Record record)
Pushes a
Record object on the stack. |
public void push(Record record)
Record object on the stack.record - the record objectpublic Record pop()
Record object from the stack and returns that
object.public boolean hasNext()
Record objects to expect,
false otherwise.public void passException(RuntimeException e)
public void end()
Copyright © 2014 FreeLibrary. All Rights Reserved.