com.conradroche.dtd.parser
Interface PIReader
- All Known Implementing Classes:
- PIReaderImpl
- public interface PIReader
Interface for reading processing
instructions.
- Author:
- Conrad Roche
|
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. |
readPI
public PI readPI(DTDData data)
throws DTDSyntaxException
- Read the processing instruction from the data stream.
- 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.
- Parameters:
data - The data to be parsed.- Returns:
true if the current location
of the data has a processing instruction;
false otherwise.