com.conradroche.dtd.parser
Interface CommentReader

All Known Implementing Classes:
CommentReaderImpl

public interface CommentReader

Interface for reading comment text.

Author:
Conrad Roche

Method Summary
 boolean isCommentStart(DTDData data)
          Checks if there is a comment at the current location of the data.
 Comment readComment(DTDData data)
          Read the comment from the data stream.
 

Method Detail

readComment

public Comment readComment(DTDData data)
                    throws DTDSyntaxException
Read the comment from the data stream.
Parameters:
data - The stream from which to read the comment.
Returns:
The comment.
Throws:
DTDSyntaxException - If the comment contains a syntax error.

isCommentStart

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