|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marc4j.RecordStack
public class RecordStack
Provides push
and pop
operations for
Record
objects created by MarcXmlParser
.
Constructor Summary | |
---|---|
RecordStack()
Default constuctor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordStack()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |