|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joseki.server.FileManager
A class to encapsulate accessing a file, whether it is in the local file system (various places), in a JAR file or a URL. Places to look for a file with a relative path name are: the servlet context, webserver current directory.
Error handling: on errors, a log message is written and nulls are returned
Method Summary | |
static FileManager |
getInstance()
Get the file manager. |
com.hp.hpl.jena.rdf.model.Model |
loadModel(java.lang.String filenameOrURI)
Load a model from a file (local or remote). |
com.hp.hpl.jena.rdf.model.Model |
loadModel(java.lang.String filenameOrURI,
java.lang.String baseURI)
Load a model from a file (local or remote). |
java.io.InputStream |
open(java.lang.String filenameOrURI)
|
com.hp.hpl.jena.rdf.model.Model |
readModel(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String filenameOrURI)
Read a file of RDF into a model. |
com.hp.hpl.jena.rdf.model.Model |
readModel(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String filenameOrURI,
java.lang.String baseURI)
Read a file of RDF into a model. |
void |
setServletContext(javax.servlet.ServletContext _servletContext)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FileManager getInstance()
public void setServletContext(javax.servlet.ServletContext _servletContext)
public com.hp.hpl.jena.rdf.model.Model loadModel(java.lang.String filenameOrURI)
filenameOrURI
- The filename or a URI (file:, http:)
public com.hp.hpl.jena.rdf.model.Model loadModel(java.lang.String filenameOrURI, java.lang.String baseURI)
filenameOrURI
- The filename or a URI (file:, http:)baseURI
- Base URI for loading the RDF model.
public com.hp.hpl.jena.rdf.model.Model readModel(com.hp.hpl.jena.rdf.model.Model model, java.lang.String filenameOrURI)
model
- filenameOrURI
-
public com.hp.hpl.jena.rdf.model.Model readModel(com.hp.hpl.jena.rdf.model.Model model, java.lang.String filenameOrURI, java.lang.String baseURI)
model
- filenameOrURI
- baseURI
-
public java.io.InputStream open(java.lang.String filenameOrURI)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |