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
DTDUrl
public DTDUrl(String url)
- DTDUrl Constructor.
- Parameters:
url
- The location of the dtd.
DTDUrl
public DTDUrl(String base,
String relative)
- DTDUrl Constructor.
- Parameters:
base
- The base URL.relative
- The relative URL.
getAbsolute
public DTDSource getAbsolute(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 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.
- Throws:
DTDException
- If the url resource could not be read.