SVGDocumentFactory, DocumentFactorypublic class SAXSVGDocumentFactory extends SAXDocumentFactory implements SVGDocumentFactory
SAXDocumentFactory.PreInfo| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
dtdids |
The accepted DTD public IDs.
|
protected static java.lang.String |
DTDIDS |
The dtd public IDs resource bundle class name.
|
protected static java.util.Properties |
dtdProps |
The ResourceBunder for the public and system ids
|
protected static java.lang.String |
HTTP_CHARSET |
Constant for HTTP content type header charset field.
|
static java.lang.String |
KEY_PUBLIC_IDS |
Key used for public identifiers
|
static java.lang.String |
KEY_SKIP_DTD |
Key used for the skippable DTD substitution
|
static java.lang.String |
KEY_SKIPPABLE_PUBLIC_IDS |
Key used for public identifiers
|
static java.lang.String |
KEY_SYSTEM_ID |
Key used for system identifiers
|
static java.lang.Object |
LOCK |
|
protected static java.lang.String |
skip_dtd |
The DTD content to use when skipping
|
protected static java.lang.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 | Description |
|---|---|
SAXSVGDocumentFactory(java.lang.String parser) |
Creates a new SVGDocumentFactory object.
|
SAXSVGDocumentFactory(java.lang.String parser,
boolean dd) |
Creates a new SVGDocumentFactory object.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.w3c.dom.Document |
createDocument(java.lang.String uri) |
Creates a SVG Document instance.
|
org.w3c.dom.Document |
createDocument(java.lang.String uri,
java.io.InputStream inp) |
Creates a SVG Document instance.
|
org.w3c.dom.Document |
createDocument(java.lang.String uri,
java.io.Reader r) |
Creates a SVG Document instance.
|
org.w3c.dom.Document |
createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri) |
Creates a Document instance.
|
org.w3c.dom.Document |
createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri,
java.io.InputStream is) |
Creates a Document instance.
|
org.w3c.dom.Document |
createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri,
java.io.Reader r) |
Creates a Document instance.
|
org.w3c.dom.svg.SVGDocument |
createSVGDocument(java.lang.String uri) |
Creates a SVG Document instance.
|
org.w3c.dom.svg.SVGDocument |
createSVGDocument(java.lang.String uri,
java.io.InputStream inp) |
Creates a SVG Document instance.
|
org.w3c.dom.svg.SVGDocument |
createSVGDocument(java.lang.String uri,
java.io.Reader r) |
Creates a SVG Document instance.
|
org.w3c.dom.DOMImplementation |
getDOMImplementation(java.lang.String ver) |
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
SAX2: Implements
EntityResolver.resolveEntity(String,String). |
void |
startDocument() |
SAX: Implements
ContentHandler.startDocument(). |
endDocument, endPrefixMapping, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDeclcreateDocument, getDocumentDescriptor, isValidating, setValidatingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendStringData, characters, comment, createDocument, createDocument, createDocument, endCDATA, endDTD, endElement, endEntity, error, fatalError, getDocumentDescriptor, ignorableWhitespace, isValidating, processingInstruction, setDocumentLocator, setErrorHandler, setValidating, startCDATA, startDTD, startElement, startEntity, warningpublic static final java.lang.Object LOCK
public static final java.lang.String KEY_PUBLIC_IDS
public static final java.lang.String KEY_SKIPPABLE_PUBLIC_IDS
public static final java.lang.String KEY_SKIP_DTD
public static final java.lang.String KEY_SYSTEM_ID
protected static final java.lang.String DTDIDS
protected static final java.lang.String HTTP_CHARSET
protected static java.lang.String dtdids
protected static java.lang.String skippable_dtdids
protected static java.lang.String skip_dtd
protected static java.util.Properties dtdProps
public SAXSVGDocumentFactory(java.lang.String parser)
parser - The SAX2 parser classname.public SAXSVGDocumentFactory(java.lang.String parser,
boolean dd)
parser - The SAX2 parser classname.dd - Whether a document descriptor must be generated.public org.w3c.dom.svg.SVGDocument createSVGDocument(java.lang.String uri)
throws java.io.IOException
SVGDocumentFactorycreateSVGDocument in interface SVGDocumentFactoryuri - The document URI.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.svg.SVGDocument createSVGDocument(java.lang.String uri,
java.io.InputStream inp)
throws java.io.IOException
createSVGDocument in interface SVGDocumentFactoryuri - The document URI.inp - The document input stream.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.svg.SVGDocument createSVGDocument(java.lang.String uri,
java.io.Reader r)
throws java.io.IOException
createSVGDocument in interface SVGDocumentFactoryuri - The document URI.r - The document reader.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String uri)
throws java.io.IOException
createDocument in class SAXDocumentFactoryuri - The document URI.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String uri,
java.io.InputStream inp)
throws java.io.IOException
createDocument in class SAXDocumentFactoryuri - The document URI.inp - The document input stream.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String uri,
java.io.Reader r)
throws java.io.IOException
createDocument in class SAXDocumentFactoryuri - The document URI.r - The document reader.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri)
throws java.io.IOException
createDocument in interface DocumentFactorycreateDocument in class SAXDocumentFactoryns - The namespace URI of the root element of the document.root - The name of the root element of the document.uri - The document URI.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri,
java.io.InputStream is)
throws java.io.IOException
createDocument in interface DocumentFactorycreateDocument in class SAXDocumentFactoryns - 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.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.Document createDocument(java.lang.String ns,
java.lang.String root,
java.lang.String uri,
java.io.Reader r)
throws java.io.IOException
createDocument in interface DocumentFactorycreateDocument in class SAXDocumentFactoryns - 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.java.io.IOException - if an error occured while reading the document.public org.w3c.dom.DOMImplementation getDOMImplementation(java.lang.String ver)
getDOMImplementation in class SAXDocumentFactorypublic void startDocument()
throws org.xml.sax.SAXException
ContentHandler.startDocument().startDocument in class SAXDocumentFactoryorg.xml.sax.SAXExceptionpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
EntityResolver.resolveEntity(String,String).resolveEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.