Class PackageDocumentPeekerHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.adobe.epubcheck.ocf.PackageDocumentPeekerHandler
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final io.mola.galimatias.URLprivate booleanprivate booleanprivate final OCFCheckerStateprivate Stringprivate static final Stringprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionPackageDocumentPeekerHandler(ValidationContext context, OCFCheckerState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) private voidprocessPackage(Attributes attributes) voidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
VERSION_3
- See Also:
-
VERSION_2
- See Also:
-
documentURL
private final io.mola.galimatias.URL documentURL -
state
-
isPackageRoot
private boolean isPackageRoot -
currentText
-
uniqueId
-
isUniqueId
private boolean isUniqueId
-
-
Constructor Details
-
PackageDocumentPeekerHandler
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
processPackage
- Throws:
SAXException
-