com.conradroche.matra.parser
Class ElementDeclReaderImpl
java.lang.Object
|
+--com.conradroche.matra.parser.ElementDeclReaderImpl
- All Implemented Interfaces:
- ElementDeclReader
- public class ElementDeclReaderImpl
- extends Object
- implements ElementDeclReader
Class to read Element declarations.
- Author:
- Conrad Roche
ElementDeclReaderImpl
public ElementDeclReaderImpl()
- ElementDeclReaderImpl Constructor.
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.