com.conradroche.matra.io
Class DTDUrl
java.lang.Object
|
+--com.conradroche.matra.io.DTDSource
|
+--com.conradroche.matra.io.DTDUrl
- public class DTDUrl
- extends DTDSource
Class to do the io operations for a URL.
- Author:
- Conrad Roche
Constructor Summary |
DTDUrl(java.lang.String url)
DTDUrl Constructor. |
DTDUrl(java.lang.String base,
java.lang.String relative)
DTDUrl Constructor. |
Method Summary |
DTDSource |
getAbsolute(java.lang.String relative)
Return the absolute path of the source
using the path relative to this source. |
java.lang.String |
getDTDFilename()
Returns the name of the DTD File. |
DTDData |
read()
Method to perform the read operation on this url source. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTDUrl
public DTDUrl(java.lang.String url)
- DTDUrl Constructor.
- Parameters:
dtdLocation
- The location to point to.
DTDUrl
public DTDUrl(java.lang.String base,
java.lang.String relative)
- DTDUrl Constructor.
- Parameters:
base
- The base URL.relative
- The relative URL.
getAbsolute
public DTDSource getAbsolute(java.lang.String relative)
- Return the absolute path of the source
using the path relative to this source.
- Overrides:
getAbsolute
in class DTDSource
- 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 java.lang.String getDTDFilename()
- Returns the name of the DTD File.
- Overrides:
getDTDFilename
in class DTDSource
- Returns:
- The name of the DTD File.
read
public DTDData read()
throws DTDException
- Method to perform the read operation on this url source.
- Overrides:
read
in class DTDSource
- Returns:
- The DTDData object containing all the read data
from the current source.