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, warningendDocument, endPrefixMapping, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDeclclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDocument, getDocumentDescriptor, isValidating, setValidatingpublic 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
SVGDocumentFactorycreateSVGDocument in interface SVGDocumentFactoryuri - 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 SVGDocumentFactoryuri - 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 SVGDocumentFactoryuri - 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 SAXDocumentFactoryuri - The document URI.IOException - if an error occured while reading the document.public Document createDocument(String uri, InputStream inp) throws IOException
createDocument in class SAXDocumentFactoryuri - 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 SAXDocumentFactoryuri - 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 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.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 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.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 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.IOException - if an error occured while reading the document.public DOMImplementation getDOMImplementation(String ver)
getDOMImplementation in class SAXDocumentFactorypublic void startDocument()
throws SAXException
ContentHandler.startDocument().startDocument in interface ContentHandlerstartDocument in class SAXDocumentFactorySAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException
EntityResolver.resolveEntity(String,String).resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerSAXExceptionCopyright © 2000–2024 Apache Software Foundation. All rights reserved.