Matra DTD Parser 0.8b

com.conradroche.matra.io
Class DTDFile

java.lang.Object
  |
  +--com.conradroche.matra.io.DTDSource
        |
        +--com.conradroche.matra.io.DTDFile

public class DTDFile
extends DTDSource

Class to do the io operations on a File.

Author:
Conrad Roche

Constructor Summary
DTDFile(String filename)
          DTDFile constructor.
 
Method Summary
 DTDSource getAbsolute(String relative)
          Return the absolute path of the source using the path relative to this source.
 String getDTDDirectory()
          Returns the directory in which the DTD File is placed.
 String getDTDFilename()
          Returns the name of the DTD File.
 DTDData read()
          Method to perform the read operation on this file 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

DTDFile

public DTDFile(String filename)
DTDFile constructor.
Parameters:
filename - The location of the DTD file.
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.

getDTDDirectory

public String getDTDDirectory()
Returns the directory in which the DTD File is placed.
Returns:
The directory in which the DTD File is placed.

read

public DTDData read()
             throws DTDException
Method to perform the read operation on this file source.
Overrides:
read in class DTDSource
Returns:
The DTDData object containing all the read data from the current source.
Throws:
DTDException - If the file could not be read.

Matra DTD Parser 0.8b