com.conradroche.dtd.parser
Interface EntityDeclReader

All Known Implementing Classes:
EntityDeclReaderImpl

public interface EntityDeclReader

Interface for reading entity declarations.

Author:
Conrad Roche

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.
 

Method Detail

readEntityDecl

public Entity readEntityDecl(DTDData data)
                      throws DTDSyntaxException
Read the entity declarations from the data stream.
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.

isEntityDeclStart

public boolean isEntityDeclStart(DTDData data)
Checks if there is an entity declaration at the current location of the data.
Parameters:
data - The data to be parsed.
Returns:
true if the current location of the data has an entity declaration; false otherwise.