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.
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.
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.