com.conradroche.matra.io
Class DTDSource
java.lang.Object
|
+--com.conradroche.matra.io.DTDSource
- Direct Known Subclasses:
- DTDFile, DTDUrl
- public abstract class DTDSource
- extends java.lang.Object
Base class for the various classes
performing io operations.
Constructor Summary |
DTDSource(java.lang.String dtdLocation)
DTDSource Constructor. |
DTDSource(java.lang.String base,
java.lang.String relative)
DTDSource constructor. |
Method Summary |
abstract DTDSource |
getAbsolute(java.lang.String relative)
Return the absolute path of the source
using the path relative to this source. |
abstract java.lang.String |
getDTDFilename()
Returns the name of the DTD File. |
java.lang.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 |
DTDSource
public DTDSource(java.lang.String dtdLocation)
- DTDSource Constructor.
- Parameters:
dtdLocation
- The location of the DTD.
DTDSource
public DTDSource(java.lang.String base,
java.lang.String relative)
- DTDSource constructor.
- Parameters:
base
- The base location.relative
- The relative location.
getAbsolute
public abstract DTDSource getAbsolute(java.lang.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 java.lang.String getDTDFilename()
- Returns the name of the DTD File.
- Returns:
- The name of the DTD File.
getDTDLocation
public java.lang.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.