org.apache.batik.dom.svg
Class SVGDocumentLoader

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGDocumentLoader
All Implemented Interfaces:
DocumentLoader

public class SVGDocumentLoader
extends java.lang.Object
implements DocumentLoader

This class is responsible on loading an SVG document.


Field Summary
protected  SVGDocumentFactory documentFactory
          The document factory used to create the document according a DOM implementation.
 
Constructor Summary
SVGDocumentLoader(java.lang.String parser)
          Constructs a new DocumentLoader with the specified XML parser.
 
Method Summary
 void dispose()
          Disposes and releases all resources allocated by this document loader.
 Document loadDocument(java.lang.String uri)
          Returns a document from the specified uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentFactory

protected SVGDocumentFactory documentFactory
The document factory used to create the document according a DOM implementation.
Constructor Detail

SVGDocumentLoader

public SVGDocumentLoader(java.lang.String parser)
Constructs a new DocumentLoader with the specified XML parser.
Parameters:
parser - The SAX2 parser classname.
Method Detail

loadDocument

public Document loadDocument(java.lang.String uri)
                      throws DOMException,
                             SAXException,
                             java.lang.InterruptedException
Description copied from interface: DocumentLoader
Returns a document from the specified uri.
Specified by:
loadDocument in interface DocumentLoader
Following copied from interface: org.apache.batik.bridge.DocumentLoader
Parameters:
uri - the uri of the document

dispose

public void dispose()
Description copied from interface: DocumentLoader
Disposes and releases all resources allocated by this document loader.
Specified by:
dispose in interface DocumentLoader


Copyright © 2000 Apache Software Foundation. All Rights Reserved.