com.conradroche.matra.parser
Class NotationReaderImpl

java.lang.Object
  |
  +--com.conradroche.matra.parser.NotationReaderImpl
All Implemented Interfaces:
NotationReader

public class NotationReaderImpl
extends java.lang.Object
implements NotationReader

Class to read a Notation declaration.

Author:
Conrad Roche

Constructor Summary
NotationReaderImpl()
          NotationReaderImpl Constructor.
 
Method Summary
 boolean isNotationStart(DTDData data)
          Checks if there is a notation declaration at the beginning of the data.
 Notation readNotation(DTDData data)
          Read the notation declaration from the data stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotationReaderImpl

public NotationReaderImpl()
NotationReaderImpl Constructor.
Method Detail

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.