- All Known Implementing Classes:
FileManagerImpl
public interface FileManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCacheModel(String uri, Model m) Deprecated.voidaddLocator(Locator loc) Add a locator to the end of the locators listvoidaddLocatorClassLoader(ClassLoader cLoad) Add a class loader locatorvoidAdd a file locatorvoidaddLocatorFile(String dir) Add a file locator which uses dir as its working directoryvoidAdd a URL locatorvoidaddLocatorZip(String zfn) Add a zip file locatorclone()static FileManagercreate()Deprecated.static FileManagercreate(LocationMapper locMap) Deprecated.UseStreamManager.static FileManagerDeprecated.UseStreamManagerstatic FileManagerget()Deprecated.UseRDFDataMgrto read RDF files.getFromCache(String filenameOrURI) Deprecated.static FileManagerFor use within Jena libraries only.static FileManagerFor use within Jena libraries only.Get the location mappingbooleanhasCachedModel(String filenameOrURI) Deprecated.booleanDeprecated.default ModelDeprecated.UseRDFDataMgrloadModelInternal(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 ModelDeprecated.UseRDFDataMgrreadModelInternal(Model model, String filenameOrURI) For use within Jena libraries only.Deprecated.readWholeFileAsUTF8(String filename) Deprecated.voidRemove a locatorvoidremoveCacheModel(String uri) Deprecated.voidDeprecated.static voidDeprecated.UseStreamManager.setGlobalvoidsetLocationMapper(LocationMapper _mapper) Set the location mappingvoidsetModelCaching(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.UseRDFDataMgrto read RDF files. UseStreamManagerif 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.UseRDFDataMgrLoad 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. -
readModel
Deprecated.UseRDFDataMgrRead 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. -
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