|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.reports.BrowseReportParser
Parses ADL browse reports.
$Log: BrowseReportParser.java,v $
Revision 1.3 2003/03/17 21:25:28 gjanee
Significantly recoded (mostly simplified) to take advantage of the
new high-performance validating XML parser.
Revision 1.2 2003/03/01 00:44:59 gjanee
Minor update to conform to the revised browse report DTD (RCS
version 1.2). Note that the parse method has been
changed: it now returns an array of
BrowseRepresentation objects.
Revision 1.1 1999/10/11 18:56:54 gjanee
Initial revision
| Nested Class Summary | |
static class |
BrowseReportParser.BrowseImage
Describes a browse-size image representation of a collection holding. |
static class |
BrowseReportParser.BrowseRepresentation
The abstract superclass for the different types of browse representations (though at the moment there is only one type). |
| Constructor Summary | |
BrowseReportParser()
Creates a BrowseReportParser. |
|
| Method Summary | |
void |
characters(char[] string,
int start,
int length)
For use by ValidatingXmlParser only. |
void |
endElement(int elementCode)
For use by ValidatingXmlParser only. |
BrowseReportParser.BrowseRepresentation[] |
parse(java.io.Reader reader)
Parses an ADL browse report. |
void |
startElement(int elementCode,
java.lang.String[] attributes)
For use by ValidatingXmlParser only. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BrowseReportParser()
BrowseReportParser. The parser may be
invoked multiple times, but is not multithread-safe.
| Method Detail |
public BrowseReportParser.BrowseRepresentation[] parse(java.io.Reader reader)
throws XmlException
reader - The primary source of the browse report.
XmlException - If a parse error occurs.
public void startElement(int elementCode,
java.lang.String[] attributes)
ValidatingXmlParser only.
startElement in interface XmlHandlerelementCode - The element's code.attributes - Element attribute values, indexed by attribute code. All of
the element's declared attributes are represented in the array;
attributes for which a value is specified in the document or
for which there is a DTD-specified default have
non-null values. The handler should reference the
array for the duration of the call only, as it is reused by the
parser. Also, the array may be longer than necessary.
public void endElement(int elementCode)
throws XmlException
ValidatingXmlParser only.
endElement in interface XmlHandlerelementCode - The element's code.
XmlException - If any error occurs.
public void characters(char[] string,
int start,
int length)
ValidatingXmlParser only.
characters in interface XmlHandlerstring - The textual content.start - The index in string at which the textual content
starts.length - The length of the content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||