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(java.lang.String filename)
          DTDFile 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 getDTDDirectory()
          Returns the directory in which the DTD File is placed.
 java.lang.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(java.lang.String filename)
DTDFile constructor.
Parameters:
dtdLocation - The location of the DTD file.
Method Detail

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.

getDTDDirectory

public java.lang.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.