|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.batik.dom.util.SAXDocumentFactory
org.apache.batik.dom.svg.SAXSVGDocumentFactory
public class SAXSVGDocumentFactory
This class contains methods for creating SVGDocument instances from an URI using SAX2.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
---|
SAXDocumentFactory.PreInfo |
Field Summary | |
---|---|
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. |
Fields inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
---|
createDocumentDescriptor, currentNode, document, documentDescriptor, errorHandler, implementation, inCDATA, inDTD, inProlog, isStandalone, isValidating, locator, namespaces, parser, parserClassName, preInfo, stringBuffer, stringContent, xmlVersion |
Constructor Summary | |
---|---|
SAXSVGDocumentFactory(String parser)
Creates a new SVGDocumentFactory object. |
|
SAXSVGDocumentFactory(String parser,
boolean dd)
Creates a new SVGDocumentFactory object. |
Methods inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
---|
appendStringData, characters, comment, createDocument, createDocument, createDocument, endCDATA, endDTD, endElement, endEntity, error, fatalError, getDocumentDescriptor, ignorableWhitespace, isValidating, processingInstruction, setDocumentLocator, setErrorHandler, setValidating, startCDATA, startDTD, startElement, startEntity, warning |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.dom.util.DocumentFactory |
---|
createDocument, getDocumentDescriptor, isValidating, setValidating |
Field Detail |
---|
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
Constructor Detail |
---|
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.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |