org.apache.batik.bridge
public class DocumentLoader extends Object
| Field Summary | |
|---|---|
| protected HashMap | cacheMap
The map that contains the Document indexed by the URI.
|
| protected SVGDocumentFactory | documentFactory
The document factory used to create the document according a
DOM implementation. |
| protected UserAgent | userAgent
The user agent. |
| Constructor Summary | |
|---|---|
| protected | DocumentLoader()
Constructs a new DocumentLoader. |
| DocumentLoader(UserAgent userAgent)
Constructs a new DocumentLoader with the specified XML parser. | |
| Method Summary | |
|---|---|
| Document | checkCache(String uri) |
| void | dispose()
Disposes and releases all resources allocated by this document loader. |
| int | getLineNumber(Element e)
Returns the line in the source code of the specified element or
-1 if not found.
|
| UserAgent | getUserAgent()
Returns the userAgent used by this DocumentLoader |
| Document | loadDocument(String uri)
Returns a document from the specified uri. |
| Document | loadDocument(String uri, InputStream is)
Returns a document from the specified uri. |
Parameters: userAgent the user agent to use
Parameters: e the element
Returns: -1 the document has been removed from the cache or has not been loaded by this document loader.
Parameters: uri the uri of the document
Throws: IOException if an I/O error occured while loading the document
Parameters: uri the uri of the document
Throws: IOException if an I/O error occured while loading the document