java.lang.Object
org.apache.jena.tdb1.base.file.Location
Wrapper for a file system directory; can create filenames in that directory.
Enforces some simple consistency policies and provides a "typed string" for a
filename to reduce errors.
-
Method Summary
Modifier and TypeMethodDescriptionReturn an absolute filename where relative names are resolved from the locationReturn an absolute filename where relative names are resolved from the locationstatic LocationReturn a location for a directory on diskbooleanbooleanexists()Does the location exist (and is a directory, and is accessible)booleanbooleangetLock()Return the name of the file relative to this locationReturn the name of the file, and extension, relative to this locationgetSubDirectory(String dirname) getSubLocation(String dirname) inthashCode()booleanisMem()booleanstatic Locationmem()Return a fresh memory location : always unique, never .equals to another location.static LocationReturn a memory location with a nametoString()
-
Method Details
-
mem
Return a fresh memory location : always unique, never .equals to another location. -
mem
Return a memory location with a name -
create
Return a location for a directory on disk -
getDirectoryPath
-
getMetaFile
-
isMem
public boolean isMem() -
isMemUnique
public boolean isMemUnique() -
getLock
-
getSubLocation
-
getSubDirectory
-
absolute
Return an absolute filename where relative names are resolved from the location -
absolute
Return an absolute filename where relative names are resolved from the location -
exists
public boolean exists()Does the location exist (and is a directory, and is accessible) -
exists
-
exists
-
getPath
Return the name of the file relative to this location -
getPath
Return the name of the file, and extension, relative to this location -
hashCode
public int hashCode() -
equals
-
toString
-