Package com.adobe.epubcheck.xml.handlers
Class LocationHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- com.adobe.epubcheck.xml.handlers.LocationHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler,org.xml.sax.ext.DeclHandler,org.xml.sax.ext.EntityResolver2,org.xml.sax.ext.LexicalHandler
- Direct Known Subclasses:
BaseURLHandler,DeclarationHandler
public class LocationHandler extends org.xml.sax.ext.DefaultHandler2
-
-
Field Summary
Fields Modifier and Type Field Description private ValidationContextcontextprivate org.xml.sax.Locatorlocator
-
Constructor Summary
Constructors Constructor Description LocationHandler(ValidationContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPUBLocationlocation()static EPUBLocationlocation(ValidationContext context, org.xml.sax.Locator locator)voidsetDocumentLocator(org.xml.sax.Locator locator)-
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
-
-
-
-
Field Detail
-
context
private final ValidationContext context
-
locator
private org.xml.sax.Locator locator
-
-
Constructor Detail
-
LocationHandler
public LocationHandler(ValidationContext context)
-
-
Method Detail
-
location
public static EPUBLocation location(ValidationContext context, org.xml.sax.Locator locator)
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler- Overrides:
setDocumentLocatorin classorg.xml.sax.helpers.DefaultHandler
-
location
protected final EPUBLocation location()
-
-