public interface FileManager
Modifier and Type | Field and Description |
---|---|
static String |
filePathSeparator |
static boolean |
logAllLookups |
static String |
PATH_DELIMITER |
Modifier and Type | Method and Description |
---|---|
void |
addCacheModel(String uri,
Model m)
Deprecated.
|
void |
addLocator(Locator loc)
Add a locator to the end of the locators list
|
void |
addLocatorClassLoader(ClassLoader cLoad)
Add a class loader locator
|
void |
addLocatorFile()
Add a file locator
|
void |
addLocatorFile(String dir)
Add a file locator which uses dir as its working directory
|
void |
addLocatorURL()
Add a URL locator
|
void |
addLocatorZip(String zfn)
Add a zip file locator
|
FileManager |
clone() |
static FileManager |
create()
Deprecated.
Use
StreamManager |
static FileManager |
create(LocationMapper locMap)
Deprecated.
Use
StreamManager. |
static FileManager |
createStd()
Deprecated.
Use
StreamManager |
static FileManager |
get()
Deprecated.
Use
RDFDataMgr to read RDF files. Use StreamManager if needed. |
Model |
getFromCache(String filenameOrURI)
Deprecated.
|
static FileManager |
getInternal()
For use within Jena libraries only.
|
LocationMapper |
getLocationMapper()
Get the location mapping
|
boolean |
hasCachedModel(String filenameOrURI)
Deprecated.
|
boolean |
isCachingModels()
Deprecated.
|
default Model |
loadModel(String filenameOrURI)
Deprecated.
Use
RDFDataMgr |
Model |
loadModel(String filenameOrURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
loadModel(String filenameOrURI,
String baseURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
loadModelInternal(String filenameOrURI)
For use within Jena libraries only.
|
Iterator<Locator> |
locators()
Return an iterator over all the handlers
|
String |
mapURI(String filenameOrURI)
Apply the mapping of a filename or URI
|
InputStream |
open(String filenameOrURI)
Open a file using the locators of this FileManager
|
InputStream |
openNoMap(String filenameOrURI)
Open a file using the locators of this FileManager
but without location mapping
|
TypedStream |
openNoMapOrNull(String filenameOrURI)
Open a file using the locators of this FileManager
but without location mapping.
|
default Model |
readModel(Model model,
String filenameOrURI)
Deprecated.
Use
RDFDataMgr |
Model |
readModel(Model model,
String filenameOrURI,
String rdfSyntax)
Deprecated.
Use
RDFDataMgr |
Model |
readModel(Model model,
String filenameOrURI,
String baseURI,
String syntax)
Deprecated.
|
Model |
readModelInternal(Model model,
String filenameOrURI)
For use within Jena libraries only.
|
String |
readWholeFileAsUTF8(InputStream in)
Deprecated.
|
String |
readWholeFileAsUTF8(String filename)
Deprecated.
|
void |
remove(Locator loc)
Remove a locator
|
void |
removeCacheModel(String uri)
Deprecated.
|
void |
resetCache()
Deprecated.
|
static void |
setGlobalFileManager(FileManager fm)
Deprecated.
Use
StreamManager.setGlobal |
void |
setLocationMapper(LocationMapper _mapper)
Set the location mapping
|
void |
setModelCaching(boolean state)
Deprecated.
|
static final boolean logAllLookups
static final String PATH_DELIMITER
static final String filePathSeparator
static FileManager getInternal()
@Deprecated static FileManager get()
RDFDataMgr
to read RDF files. Use StreamManager
if needed.@Deprecated static void setGlobalFileManager(FileManager fm)
StreamManager.setGlobal
@Deprecated static FileManager create()
StreamManager
@Deprecated static FileManager createStd()
StreamManager
@Deprecated static FileManager create(LocationMapper locMap)
StreamManager.
FileManager clone()
void setLocationMapper(LocationMapper _mapper)
LocationMapper getLocationMapper()
void addLocator(Locator loc)
void addLocatorFile()
void addLocatorFile(String dir)
void addLocatorClassLoader(ClassLoader cLoad)
void addLocatorURL()
void addLocatorZip(String zfn)
void remove(Locator loc)
@Deprecated void resetCache()
@Deprecated void setModelCaching(boolean state)
@Deprecated boolean isCachingModels()
@Deprecated Model getFromCache(String filenameOrURI)
@Deprecated boolean hasCachedModel(String filenameOrURI)
@Deprecated void addCacheModel(String uri, Model m)
@Deprecated void removeCacheModel(String uri)
@Deprecated default Model loadModel(String filenameOrURI)
RDFDataMgr
filenameOrURI
- The filename or a URI (file:, http:)JenaException
- if there is syntax error in file.@Deprecated Model loadModel(String filenameOrURI, String rdfSyntax)
RDFDataMgr
filenameOrURI
- The filename or a URI (file:, http:)rdfSyntax
- RDF Serialization syntax.JenaException
- if there is syntax error in file.@Deprecated Model loadModel(String filenameOrURI, String baseURI, String rdfSyntax)
RDFDataMgr
filenameOrURI
- The filename or a URI (file:, http:)baseURI
- Base URI for loading the RDF model.rdfSyntax
- RDF Serialization syntax.JenaException
- if there is syntax error in file.default Model readModel(Model model, String filenameOrURI)
RDFDataMgr
model
- filenameOrURI
- JenaException
- if there is syntax error in file.Model readModelInternal(Model model, String filenameOrURI)
@Deprecated Model readModel(Model model, String filenameOrURI, String rdfSyntax)
RDFDataMgr
model
- filenameOrURI
- rdfSyntax
- RDF Serialization syntax.JenaException
- if there is syntax error in file.@Deprecated Model readModel(Model model, String filenameOrURI, String baseURI, String syntax)
model
- filenameOrURI
- baseURI
- syntax
- JenaException
- if there is syntax error in file.InputStream open(String filenameOrURI)
@Deprecated String readWholeFileAsUTF8(InputStream in)
@Deprecated String readWholeFileAsUTF8(String filename)
InputStream openNoMap(String filenameOrURI)
TypedStream openNoMapOrNull(String filenameOrURI)
Licenced under the Apache License, Version 2.0