public class LoadDocumentStep extends DocumentLoader
LoadDocument
to implement document loading
possibly using two passes.StopLoadingException
DocumentLoader.StackItem
Modifier and Type | Field and Description |
---|---|
protected DTDSpec[] |
actualDTDSpec |
protected Console |
console |
DocumentTypeSpec |
detectedDocTypeSpec |
protected boolean |
firstPass |
protected static Name[] |
SKIPPED_PROPERTY_NAMES |
protected boolean |
twoPasses |
protected ArrayList<Object> |
userProperties |
cdataMark, charCount, chars, declaredPrefixes, dtdEntityNesting, dtdSpec, encoding, entities, externalSubsetOrigin, firstElement, insideDTD, insideExternalSubset, internalSubset, internalSubsetOrigin, isCharEntity, locator, nsPrefixMap, options, parser, stack, stackSize, standalone, version, wasCDATA
ADD_ANY_DOCUMENT_TYPE, ADD_AUTO_DOCUMENT_TYPE, ADD_DECLARED_PREFIXES, ADD_LINE_COLUMN, ADD_XML_DECLARATION, DONT_INCLUDE, DONT_STRIP_WHITESPACE, GUESS_IGNORABLE_WHITESPACE, XINCLUDE
Constructor and Description |
---|
LoadDocumentStep(boolean twoPasses,
int userOptions,
Console console) |
Modifier and Type | Method and Description |
---|---|
protected DocumentTypeDeclaration |
createDocumentTypeDeclaration() |
void |
documentLoaded(Document doc) |
void |
endDTD() |
InputSource |
getExternalSubset(String name,
String baseURI) |
InputSource |
resolveEntity(String name,
String publicId,
String baseURI,
String systemId) |
protected void |
restoreUserProperties(Element element) |
protected void |
rootElement(Element element) |
protected void |
saveUserProperties(Element element) |
attributeDecl, baseURL, characters, checkChars, checkEntityRef, comment, elementDecl, endCDATA, endDocument, endElement, endEntity, endPrefixMapping, entityOrigin, error, externalEntityDecl, fatalError, format, getDocumentURL, getDTDSpec, getEncoding, getOptions, getStandalone, getVersion, ignorableWhitespace, internalEntityDecl, load, load, load, load, notationDecl, pop, processingInstruction, push, resolveEntity, setDocumentLocator, setOptions, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, top, unparsedEntityDecl, warning
protected boolean twoPasses
protected Console console
protected boolean firstPass
public DocumentTypeSpec detectedDocTypeSpec
protected DTDSpec[] actualDTDSpec
protected static final Name[] SKIPPED_PROPERTY_NAMES
public LoadDocumentStep(boolean twoPasses, int userOptions, Console console)
protected void rootElement(Element element)
rootElement
in class DocumentLoader
protected void saveUserProperties(Element element)
protected void restoreUserProperties(Element element)
protected DocumentTypeDeclaration createDocumentTypeDeclaration()
createDocumentTypeDeclaration
in class DocumentLoader
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
getExternalSubset
in interface EntityResolver2
getExternalSubset
in class DocumentLoader
SAXException
IOException
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver2
resolveEntity
in class DocumentLoader
SAXException
IOException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
endDTD
in class DocumentLoader
SAXException
public void documentLoaded(Document doc)