|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.arbortext.catalog.CatalogReader
Parses OASIS Open Catalog files.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
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 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 processprotected void finalize() throws java.io.IOException
The destructor.
Makes sure the catalog file is closed.
public CatalogEntry nextEntry() throws java.io.IOException
Get the next entry from the file
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |