|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jolene.factories.DocumentFactory
public class DocumentFactory
DocumentFactory is a Singleton used to perform cacheing of documents. Documents added to the cache are not parsed again. Instead they are cloned which is faster.
Method Summary | |
---|---|
Document |
getDocument(java.lang.String docFileName)
Returns a new document instance using the full filename + timestamp as the factory key. |
Document |
getDocument(java.lang.String docFileName,
java.lang.String contextPath,
java.lang.String uri)
Returns a new document instance using the full filename + timestamp as the factory key. |
static DocumentFactory |
getInstance()
Gets the factory instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentFactory getInstance()
public Document getDocument(java.lang.String docFileName) throws java.io.IOException
docFileName
- full path and name to the file to get.
java.io.IOException
- if any IOException occurs.public Document getDocument(java.lang.String docFileName, java.lang.String contextPath, java.lang.String uri) throws java.io.IOException
docFileName
- full path and name to the file to get.contextPath
- aids in finding the document's real path from the uri.uri
- uri to the document.
java.io.IOException
- if ever an IOException occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |