|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.bridge.DocumentLoader
This class is responsible on loading an SVG document and maintaining a cache.
Field Summary | |
protected BridgeContext |
bridgeContext
The bridge context. |
protected java.util.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 | |
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(java.lang.String uri)
Returns a document from the specified uri. |
void |
setBridgeContext(BridgeContext bc)
Sets the bridge context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SVGDocumentFactory documentFactory
protected java.util.HashMap cacheMap
protected UserAgent userAgent
protected BridgeContext bridgeContext
Constructor Detail |
protected DocumentLoader()
public DocumentLoader(UserAgent userAgent)
userAgent
- the user agent to useMethod Detail |
public Document loadDocument(java.lang.String uri) throws java.io.IOException
uri
- the uri of the documentjava.io.IOException
- if an I/O error occured while loading
the documentpublic void setBridgeContext(BridgeContext bc)
public UserAgent getUserAgent()
public void dispose()
public int getLineNumber(Element e)
e
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |