com.conradroche.matra.parser
Class PIReaderImpl
java.lang.Object
|
+--com.conradroche.matra.parser.PIReaderImpl
- All Implemented Interfaces:
- PIReader
- public class PIReaderImpl
- extends Object
- implements PIReader
Class to read the comment text.
- Author:
- Conrad Roche
Constructor Summary |
PIReaderImpl()
PIReaderImpl Constructor. |
Method Summary |
boolean |
isPIStart(DTDData data)
Checks if there is a processing instruction at the
current location of the data. |
PI |
readPI(DTDData data)
Read the processing instruction from the data stream. |
PIReaderImpl
public PIReaderImpl()
- PIReaderImpl Constructor.
readPI
public PI readPI(DTDData data)
throws DTDSyntaxException
- Read the processing instruction from the data stream.
- Specified by:
readPI
in interface PIReader
- Parameters:
data
- The stream from which to read the processing
instruction.- Returns:
- The processing instruction.
- Throws:
DTDSyntaxException
- If the processing instruction
contains a syntax error.
isPIStart
public boolean isPIStart(DTDData data)
- Checks if there is a processing instruction at the
current location of the data.
- Specified by:
isPIStart
in interface PIReader
- Parameters:
data
- The data to be parsed.- Returns:
true
if the current location
of the data has a processing instruction;
false
otherwise.