Matra DTD Parser 0.8b

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(String url)
          DTDUrl Constructor.
DTDUrl(String base, String relative)
          DTDUrl Constructor.
 
Method Summary
 DTDSource getAbsolute(String relative)
          Return the absolute path of the source using the path relative to this source.
 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 com.conradroche.matra.io.DTDSource
getDTDLocation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

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.

Matra DTD Parser 0.8b