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
EntityDeclReaderImpl
public EntityDeclReaderImpl()
- EntityDeclReaderImpl Constructor.
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)