public class OfflineContentHandler extends ContentHandlerDecorator
resolveEntity(String, String)
method to prevent potential
network or other external resources from being accessed by an XML parser.Constructor and Description |
---|
OfflineContentHandler(ContentHandler handler) |
Modifier and Type | Method and Description |
---|---|
InputSource |
resolveEntity(String publicId,
String systemId)
Returns an empty stream.
|
characters, endDocument, endElement, endPrefixMapping, handleException, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toString
error, fatalError, notationDecl, unparsedEntityDecl, warning
public OfflineContentHandler(ContentHandler handler)
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.