protected class XMLDocumentFragmentScannerImpl.FragmentContentDriver extends Object implements XMLDocumentFragmentScannerImpl.Driver
| Modifier | Constructor and Description |
|---|---|
protected |
XMLDocumentFragmentScannerImpl.FragmentContentDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLimit(XMLStringBuffer buffer)
Add the count of the content buffer and check if the accumulated
value exceeds the limit
|
void |
decideSubState()
SCANNER_STATE_CONTENT and SCANNER_STATE_START_OF_MARKUP are two super states of the parser.
|
protected boolean |
elementDepthIsZeroHook()
Element depth iz zero.
|
protected void |
endOfFileHook(EOFException e)
End of file hook.
|
int |
next()
Drives the parser to the next state/event on the input.
|
protected boolean |
scanForDoctypeHook()
Scan for DOCTYPE hook.
|
protected boolean |
scanRootElementHook()
Scan for root element hook.
|
protected XMLDocumentFragmentScannerImpl.FragmentContentDriver()
public void decideSubState()
throws IOException
IOExceptionpublic int next()
throws IOException,
XNIException
next in interface XMLDocumentFragmentScannerImpl.DriverIOException - Thrown on i/o error.XNIException - Thrown on parse error.protected void checkLimit(XMLStringBuffer buffer)
buffer - content bufferprotected boolean scanForDoctypeHook()
throws IOException,
XNIException
IOExceptionXNIExceptionprotected boolean elementDepthIsZeroHook()
throws IOException,
XNIException
IOExceptionXNIExceptionprotected boolean scanRootElementHook()
throws IOException,
XNIException
IOExceptionXNIExceptionprotected void endOfFileHook(EOFException e) throws IOException, XNIException
IOExceptionXNIExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.