|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.excalibur.catalog.CatalogReader
Parses OASIS Open Catalog files.
This class reads OASIS Open Catalog files, returning a stream of tokens.This code interrogates the following non-standard system properties:
Sets the debug level. A value of 0 is assumed if the property is not set or is not a number.
Catalog
Field Summary | |
int |
debug
The debug level |
Constructor Summary | |
CatalogReader()
Construct a CatalogReader object. |
Method Summary | |
protected void |
finalize()
The destructor. |
CatalogEntry |
nextEntry()
Get the next entry from the file |
static java.lang.String |
normalize(java.lang.String publicId)
Normalize a public identifier. |
void |
parseCatalog(java.lang.String fileUrl)
Start parsing an OASIS Open Catalog file. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int debug
The debug level
In general, higher numbers produce more information:
Constructor Detail |
public CatalogReader()
Construct a CatalogReader object.
Method Detail |
public static java.lang.String normalize(java.lang.String publicId)
Normalize a public identifier.
Public identifiers must be normalized according to the following rules before comparisons between them can be made:
This method is declared static so that other classes can use it directly.
publicId
- The unnormalized public identifier.public void parseCatalog(java.lang.String fileUrl) throws java.net.MalformedURLException, java.io.IOException
Start parsing an OASIS Open Catalog file. The file is actually read and
parsed as needed by nextEntry
.
fileUrl
- The URL or filename of the catalog file to processjava.net.MalformedURLException
- Improper fileUrljava.io.IOException
- Error reading catalog filepublic CatalogEntry nextEntry() throws java.io.IOException
Get the next entry from the file
java.io.IOException
- Error reading catalog fileprotected void finalize() throws java.io.IOException
The destructor.
Makes sure the catalog file is closed.
finalize
in class java.lang.Object
java.io.IOException
- DOC: Insert Description of Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |