java.lang.Object
org.apache.jena.riot.system.stream.LocatorFile
- All Implemented Interfaces:
Locator
Location files in the filing system.
A FileLocator can have a "current directory" - this is separate from any
location mapping (see
LocationMapper
) as it applies only to files.-
Constructor Summary
ConstructorDescriptionCreate a LocatorFile without a specific working directory.LocatorFile
(String dir) Create a LocatorFile that uses the argument as it's working directory. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getName()
boolean
int
hashCode()
Open anything that looks a bit like a file nametoFileName
(String filenameIRI) Processing the filename for file: or relative filename and return a filename suitable for file operations.
-
Constructor Details
-
LocatorFile
public LocatorFile()Create a LocatorFile without a specific working directory. Relative file names are relative to the working directory of the JVM. -
LocatorFile
Create a LocatorFile that uses the argument as it's working directory.The working directory should be a UNIX style file name, (relative or absolute), not a URI.
For MS Window, if asked to
open(java.lang.String)
a file name with a drive letter, the code assumes it is not relative to the working directory of thisLocatorFile
.
-
-
Method Details
-
toFileName
Processing the filename for file: or relative filename and return a filename suitable for file operations. -
getThisDir
-
hasCurrentDir
public boolean hasCurrentDir() -
exists
-
open
Open anything that looks a bit like a file name -
getName
-
hashCode
public int hashCode() -
equals
-