Matra DTD Parser 0.8b

com.conradroche.matra.parser
Class EntityDeclReaderImpl

java.lang.Object
  |
  +--com.conradroche.matra.parser.EntityDeclReaderImpl
All Implemented Interfaces:
EntityDeclReader

public class EntityDeclReaderImpl
extends Object
implements EntityDeclReader

Class for reading entity declarations.

Author:
Conrad Roche

Constructor Summary
EntityDeclReaderImpl()
          EntityDeclReaderImpl Constructor.
 
Method Summary
 boolean isEntityDeclStart(DTDData data)
          Checks if there is an entity declaration at the current location of the data.
 Entity readEntityDecl(DTDData data)
          Read the entity declarations from the data stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityDeclReaderImpl

public EntityDeclReaderImpl()
EntityDeclReaderImpl Constructor.
Method Detail

readEntityDecl

public Entity readEntityDecl(DTDData data)
                      throws DTDSyntaxException
Read the entity declarations from the data stream.
Specified by:
readEntityDecl in interface EntityDeclReader
Parameters:
data - The stream from which to read the entity declaration.
Returns:
The entity declaration.
Throws:
DTDSyntaxException - If the Entity declaration contains a syntax error.
See Also:
EntityDeclReader.readEntityDecl(com.conradroche.matra.data.DTDData)

isEntityDeclStart

public boolean isEntityDeclStart(DTDData data)
Checks if there is an entity declaration at the current location of the data.
Specified by:
isEntityDeclStart in interface EntityDeclReader
Parameters:
data - The data to be parsed.
Returns:
true if the current location of the data has an entity declaration; false otherwise.
See Also:
EntityDeclReader.isEntityDeclStart(com.conradroche.matra.data.DTDData)

Matra DTD Parser 0.8b