com.conradroche.matra.parser
Class NotationReaderImpl
java.lang.Object
|
+--com.conradroche.matra.parser.NotationReaderImpl
- All Implemented Interfaces:
- NotationReader
- public class NotationReaderImpl
- extends Object
- implements NotationReader
Class to read a Notation declaration.
- Author:
- Conrad Roche
NotationReaderImpl
public NotationReaderImpl()
- NotationReaderImpl Constructor.
readNotation
public Notation readNotation(DTDData data)
throws DTDSyntaxException
- Read the notation declaration from the data stream.
- Specified by:
readNotation in interface NotationReader
- Parameters:
data - The stream from which to read the comment.- Returns:
- The comment.
- Throws:
DTDSyntaxException - If the Notation
declaration contains a syntax error.
isNotationStart
public boolean isNotationStart(DTDData data)
- Checks if there is a notation declaration at the
beginning of the data.
- Specified by:
isNotationStart in interface NotationReader
- Parameters:
data - The data to be parsed.- Returns:
true if the current location
of the data has a comment; false otherwise.