public class SAXSVGDocumentFactory extends SAXDocumentFactory implements SVGDocumentFactory
SAXDocumentFactory.PreInfo
Modifier and Type | Field and Description |
---|---|
protected static String |
dtdids
The accepted DTD public IDs.
|
protected static String |
DTDIDS
The dtd public IDs resource bundle class name.
|
protected static Properties |
dtdProps
The ResourceBunder for the public and system ids
|
protected static String |
HTTP_CHARSET
Constant for HTTP content type header charset field.
|
static String |
KEY_PUBLIC_IDS
Key used for public identifiers
|
static String |
KEY_SKIP_DTD
Key used for the skippable DTD substitution
|
static String |
KEY_SKIPPABLE_PUBLIC_IDS
Key used for public identifiers
|
static String |
KEY_SYSTEM_ID
Key used for system identifiers
|
static Object |
LOCK |
protected static String |
skip_dtd
The DTD content to use when skipping
|
protected static String |
skippable_dtdids
The DTD public IDs we know we can skip.
|
createDocumentDescriptor, currentNode, doctype, document, documentDescriptor, errorHandler, implementation, inCDATA, inDTD, inProlog, isStandalone, isValidating, locator, namespaces, parser, parserClassName, preInfo, stringBuffer, stringContent, xmlVersion
Constructor and Description |
---|
SAXSVGDocumentFactory(String parser)
Creates a new SVGDocumentFactory object.
|
SAXSVGDocumentFactory(String parser,
boolean dd)
Creates a new SVGDocumentFactory object.
|
appendStringData, characters, comment, createDocument, createDocument, createDocument, endCDATA, endDTD, endElement, endEntity, error, fatalError, getDocumentDescriptor, ignorableWhitespace, isValidating, processingInstruction, setDocumentLocator, setErrorHandler, setValidating, startCDATA, startDTD, startElement, startEntity, warning
endDocument, endPrefixMapping, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDecl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDocument, getDocumentDescriptor, isValidating, setValidating
public static final Object LOCK
public static final String KEY_PUBLIC_IDS
public static final String KEY_SKIPPABLE_PUBLIC_IDS
public static final String KEY_SKIP_DTD
public static final String KEY_SYSTEM_ID
protected static final String DTDIDS
protected static final String HTTP_CHARSET
protected static String dtdids
protected static String skippable_dtdids
protected static String skip_dtd
protected static Properties dtdProps
public SAXSVGDocumentFactory(String parser)
parser
- The SAX2 parser classname.public SAXSVGDocumentFactory(String parser, boolean dd)
parser
- The SAX2 parser classname.dd
- Whether a document descriptor must be generated.public org.w3c.dom.svg.SVGDocument createSVGDocument(String uri) throws IOException
SVGDocumentFactory
createSVGDocument
in interface SVGDocumentFactory
uri
- The document URI.IOException
- if an error occured while reading the document.public org.w3c.dom.svg.SVGDocument createSVGDocument(String uri, InputStream inp) throws IOException
createSVGDocument
in interface SVGDocumentFactory
uri
- The document URI.inp
- The document input stream.IOException
- if an error occured while reading the document.public org.w3c.dom.svg.SVGDocument createSVGDocument(String uri, Reader r) throws IOException
createSVGDocument
in interface SVGDocumentFactory
uri
- The document URI.r
- The document reader.IOException
- if an error occured while reading the document.public Document createDocument(String uri) throws IOException
createDocument
in class SAXDocumentFactory
uri
- The document URI.IOException
- if an error occured while reading the document.public Document createDocument(String uri, InputStream inp) throws IOException
createDocument
in class SAXDocumentFactory
uri
- The document URI.inp
- The document input stream.IOException
- if an error occured while reading the document.public Document createDocument(String uri, Reader r) throws IOException
createDocument
in class SAXDocumentFactory
uri
- The document URI.r
- The document reader.IOException
- if an error occured while reading the document.public Document createDocument(String ns, String root, String uri) throws IOException
createDocument
in interface DocumentFactory
createDocument
in class SAXDocumentFactory
ns
- The namespace URI of the root element of the document.root
- The name of the root element of the document.uri
- The document URI.IOException
- if an error occured while reading the document.public Document createDocument(String ns, String root, String uri, InputStream is) throws IOException
createDocument
in interface DocumentFactory
createDocument
in class SAXDocumentFactory
ns
- The namespace URI of the root element of the document.root
- The name of the root element of the document.uri
- The document URI.is
- The document input stream.IOException
- if an error occured while reading the document.public Document createDocument(String ns, String root, String uri, Reader r) throws IOException
createDocument
in interface DocumentFactory
createDocument
in class SAXDocumentFactory
ns
- The namespace URI of the root element of the document.root
- The name of the root element of the document.uri
- The document URI.r
- The document reader.IOException
- if an error occured while reading the document.public DOMImplementation getDOMImplementation(String ver)
getDOMImplementation
in class SAXDocumentFactory
public void startDocument() throws SAXException
ContentHandler.startDocument()
.startDocument
in interface ContentHandler
startDocument
in class SAXDocumentFactory
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
EntityResolver.resolveEntity(String,String)
.resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
SAXException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.