|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.harvard.hul.ois.mets.helper.MetsReader
Reader to de-serialize a METS file to an in-memory representation.
| Constructor Summary | |
MetsReader(java.io.InputStream in)
Instantiate a MetsReader object with an open input stream. |
|
MetsReader(java.io.InputStream in,
boolean debug)
Instantiate a MetsReader object with an open input stream. |
|
| Method Summary | |
Token |
atContent()
Determine if the current parser token is child content. |
boolean |
atEnd(java.lang.String localName)
Determine if the current parser token is an end tag. |
boolean |
atStart()
Determine if the current parser token is an start tag. |
boolean |
atStart(java.lang.String localName)
Determine if the current parser token is an start tag. |
boolean |
atText()
Determine if the current parser token is text. |
void |
getEnd(java.lang.String localName)
Consume an end tag. |
Token |
getStart()
Consume a start tag. |
Token |
getStart(java.lang.String localName)
Consume a start tag. |
java.lang.String |
getText()
Consume text content. |
boolean |
isDebug()
Return status of the reader debug flag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MetsReader(java.io.InputStream in)
throws MetsException
in - Open input stream
MetsException - I/O exception
public MetsReader(java.io.InputStream in,
boolean debug)
throws MetsException
in - Open input streamdebug - Debug flag
MetsException - I/O exception| Method Detail |
public Token atContent()
throws MetsException
MetsException - Parsing exception
public boolean atEnd(java.lang.String localName)
throws MetsException
localName - Element local name
MetsException - Parsing exception
public boolean atStart()
throws MetsException
MetsException - Parsing exception
public boolean atStart(java.lang.String localName)
throws MetsException
localName - Element local name
MetsException - Parsing exception
public boolean atText()
throws MetsException
MetsException - Parsing exception
public void getEnd(java.lang.String localName)
throws MetsException
localName - Local element name
MetsException - Parsing exception
public Token getStart()
throws MetsException
MetsException - Parsing exception
public Token getStart(java.lang.String localName)
throws MetsException
localName - Local element name
MetsException - Parsing exception
public java.lang.String getText()
throws MetsException
MetsException - Parsing exceptionpublic boolean isDebug()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||