|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.wvtool.generic.loader.UniversalLoader
public class UniversalLoader
Loader, which is able to load individual documents from an URL or simply from a local file given by the source name in document information. The loader first tries to parse the given document source as a URL and only if this fails, tries to interpret it as a local path.
Field Summary | |
---|---|
private java.io.InputStream |
currentInputStream
|
Constructor Summary | |
---|---|
UniversalLoader()
Constructor for UniversalLoader. |
Method Summary | |
---|---|
void |
close(WVTDocumentInfo d)
Close the resource from which the given document has been read. |
java.io.InputStream |
loadDocument(WVTDocumentInfo d)
Open the document and return an input stream on it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.InputStream currentInputStream
Constructor Detail |
---|
public UniversalLoader()
Method Detail |
---|
public java.io.InputStream loadDocument(WVTDocumentInfo d) throws WVToolException
WVTDocumentLoader
loadDocument
in interface WVTDocumentLoader
d
- the WVTDocumentInfo
about the document being
loaded
InputStream
WVToolException
WVTDocumentLoader.loadDocument(WVTDocumentInfo)
public void close(WVTDocumentInfo d) throws WVToolException
WVTDocumentLoader
close
in interface WVTDocumentLoader
d
- the WVTDocumentInfo
about the document
WVToolException
WVTDocumentLoader.close(WVTDocumentInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |