Matra DTD Parser 0.8b

com.conradroche.matra.io
Class DTDSource

java.lang.Object
  |
  +--com.conradroche.matra.io.DTDSource
Direct Known Subclasses:
DTDFile, DTDUrl

public abstract class DTDSource
extends Object

Base class for the various classes performing io operations.


Constructor Summary
DTDSource(String dtdLocation)
          DTDSource Constructor.
DTDSource(String base, String relative)
          DTDSource constructor.
 
Method Summary
abstract  DTDSource getAbsolute(String relative)
          Return the absolute path of the source using the path relative to this source.
abstract  String getDTDFilename()
          Returns the name of the DTD File.
 String getDTDLocation()
          The location of the DTD to which this is pointing to.
abstract  DTDData read()
          Method to perform the read operation on this source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDSource

public DTDSource(String dtdLocation)
DTDSource Constructor.
Parameters:
dtdLocation - The location of the DTD.

DTDSource

public DTDSource(String base,
                 String relative)
DTDSource constructor.
Parameters:
base - The base location.
relative - The relative location.
Method Detail

getAbsolute

public abstract DTDSource getAbsolute(String relative)
Return the absolute path of the source using the path relative to this source.
Parameters:
relative - The relative path of the source w.r.t. the current location of this source.
Returns:
The abosolute path of the source.

getDTDFilename

public abstract String getDTDFilename()
Returns the name of the DTD File.
Returns:
The name of the DTD File.

getDTDLocation

public String getDTDLocation()
The location of the DTD to which this is pointing to.
Returns:
The location of the DTD.

read

public abstract DTDData read()
                      throws DTDException
Method to perform the read operation on this source.
Returns:
The DTDData object containing all the read data from the current source.
Throws:
DTDException - When the dtd source could not be read.

Matra DTD Parser 0.8b