com.conradroche.matra.parser
Class ElementDeclReaderImpl

java.lang.Object
  |
  +--com.conradroche.matra.parser.ElementDeclReaderImpl
All Implemented Interfaces:
ElementDeclReader

public class ElementDeclReaderImpl
extends java.lang.Object
implements ElementDeclReader

Class to read Element declarations.

Author:
Conrad Roche

Constructor Summary
ElementDeclReaderImpl()
          ElementDeclReaderImpl Constructor.
 
Method Summary
 boolean isElementDeclStart(DTDData data)
          Checks if there is an element declaration at the beginning of the data.
 ElementDecl readElementDecl(DTDData data)
          Read the Element declaration from the data stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementDeclReaderImpl

public ElementDeclReaderImpl()
ElementDeclReaderImpl Constructor.
Method Detail

readElementDecl

public ElementDecl readElementDecl(DTDData data)
                            throws DTDSyntaxException
Read the Element declaration from the data stream.
Specified by:
readElementDecl in interface ElementDeclReader
Parameters:
data - The stream from which to read the element declaration.
Returns:
The element declaration.
Throws:
DTDSyntaxException - If the Element declaration contains a syntax error.
See Also:
ElementDeclReader.readElementDecl(com.conradroche.matra.data.DTDData)

isElementDeclStart

public boolean isElementDeclStart(DTDData data)
Checks if there is an element declaration at the beginning of the data.
Specified by:
isElementDeclStart in interface ElementDeclReader
Parameters:
data - The stream from which to read the element declaration.
Returns:
true if there is an element declaration at the start of the data stream; false otherwise.