Package org.apache.jena.util
Interface FileManager
- All Known Implementing Classes:
FileManagerImpl
public interface FileManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCacheModel
(String uri, Model m) Deprecated.void
addLocator
(Locator loc) Add a locator to the end of the locators listvoid
addLocatorClassLoader
(ClassLoader cLoad) Add a class loader locatorvoid
Add a file locatorvoid
addLocatorFile
(String dir) Add a file locator which uses dir as its working directoryvoid
Add a URL locatorvoid
addLocatorZip
(String zfn) Add a zip file locatorclone()
static FileManager
create()
Deprecated.static FileManager
create
(LocationMapper locMap) Deprecated.UseStreamManager.
static FileManager
Deprecated.UseStreamManager
static FileManager
get()
Deprecated.UseRDFDataMgr
to read RDF files.getFromCache
(String filenameOrURI) Deprecated.static FileManager
For use within Jena libraries only.static FileManager
For use within Jena libraries only.Get the location mappingboolean
hasCachedModel
(String filenameOrURI) Deprecated.boolean
Deprecated.default Model
Deprecated.UseRDFDataMgr
Deprecated.UseRDFDataMgr
Deprecated.UseRDFDataMgr
loadModelInternal
(String filenameOrURI) For use within Jena libraries only.locators()
Return an iterator over all the handlersApply the mapping of a filename or URIOpen a file using the locators of this FileManagerOpen a file using the locators of this FileManager but without location mappingopenNoMapOrNull
(String filenameOrURI) Open a file using the locators of this FileManager but without location mapping.default Model
Deprecated.UseRDFDataMgr
Deprecated.UseRDFDataMgr
Deprecated.readModelInternal
(Model model, String filenameOrURI) For use within Jena libraries only.Deprecated.readWholeFileAsUTF8
(String filename) Deprecated.void
Remove a locatorvoid
removeCacheModel
(String uri) Deprecated.void
Deprecated.static void
Deprecated.UseStreamManager.setGlobal
void
setLocationMapper
(LocationMapper _mapper) Set the location mappingvoid
setModelCaching
(boolean state) Deprecated.
-
Field Details
-
logAllLookups
static final boolean logAllLookups- See Also:
-
PATH_DELIMITER
- See Also:
-
filePathSeparator
-
-
Method Details
-
getInternal
For use within Jena libraries only. -
getInternalNoInit
For use within Jena libraries only. -
get
Deprecated.UseRDFDataMgr
to read RDF files. UseStreamManager
if needed. -
setGlobalFileManager
Deprecated.UseStreamManager.setGlobal
-
create
Deprecated.UseStreamManager
-
createStd
Deprecated.UseStreamManager
-
create
Deprecated.UseStreamManager.
-
clone
FileManager clone() -
setLocationMapper
Set the location mapping -
getLocationMapper
LocationMapper getLocationMapper()Get the location mapping -
locators
Return an iterator over all the handlers -
addLocator
Add a locator to the end of the locators list -
addLocatorFile
void addLocatorFile()Add a file locator -
addLocatorFile
Add a file locator which uses dir as its working directory -
addLocatorClassLoader
Add a class loader locator -
addLocatorURL
void addLocatorURL()Add a URL locator -
addLocatorZip
Add a zip file locator -
remove
Remove a locator -
resetCache
Deprecated.Reset the model cache -
setModelCaching
Deprecated.Change the state of model cache : does not clear the cache -
isCachingModels
Deprecated.return whether caching is on of off -
getFromCache
Deprecated.Read out of the cache - return null if not in the cache -
hasCachedModel
Deprecated. -
addCacheModel
Deprecated. -
removeCacheModel
Deprecated. -
loadModel
Deprecated.UseRDFDataMgr
Load a model from a file (local or remote). This operation may attempt content negotiation for http URLs.- Parameters:
filenameOrURI
- The filename or a URI (file:, http:)- Returns:
- a new model
- Throws:
JenaException
- if there is syntax error in file.
-
loadModelInternal
For use within Jena libraries only. -
loadModel
Deprecated.UseRDFDataMgr
Load a model from a file (local or remote). URI is the base for reading the model.- Parameters:
filenameOrURI
- The filename or a URI (file:, http:)rdfSyntax
- RDF Serialization syntax.- Returns:
- a new model
- Throws:
JenaException
- if there is syntax error in file.
-
loadModel
Deprecated.UseRDFDataMgr
Load a model from a file (local or remote).- Parameters:
filenameOrURI
- The filename or a URI (file:, http:)baseURI
- Base URI for loading the RDF model.rdfSyntax
- RDF Serialization syntax.- Returns:
- a new model
- Throws:
JenaException
- if there is syntax error in file.
-
readModel
Deprecated.UseRDFDataMgr
Read a file of RDF into a model. Guesses the syntax of the file based on filename extension, defaulting to RDF/XML.- Parameters:
model
-filenameOrURI
-- Returns:
- The model or null, if there was an error.
- Throws:
JenaException
- if there is syntax error in file.
-
readModelInternal
For use within Jena libraries only. -
readModel
Deprecated.UseRDFDataMgr
Read a file of RDF into a model.- Parameters:
model
-filenameOrURI
-rdfSyntax
- RDF Serialization syntax.- Returns:
- The model or null, if there was an error.
- Throws:
JenaException
- if there is syntax error in file.
-
readModel
Deprecated.Read a file of RDF into a model.- Parameters:
model
-filenameOrURI
-baseURI
-syntax
-- Returns:
- The model
- Throws:
JenaException
- if there is syntax error in file.
-
open
Open a file using the locators of this FileManager -
mapURI
Apply the mapping of a filename or URI -
readWholeFileAsUTF8
Deprecated.Slurp up a whole file -
readWholeFileAsUTF8
Deprecated.Slurp up a whole file: map filename as necessary -
openNoMap
Open a file using the locators of this FileManager but without location mapping -
openNoMapOrNull
Open a file using the locators of this FileManager but without location mapping. Return null if not found
-
StreamManager