Class LocatorFileAccept
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.stream.LocatorAcceptBase
fr.mines_stetienne.ci.sparql_generate.stream.LocatorFileAccept
- All Implemented Interfaces:
LocatorAccept,org.apache.jena.riot.system.stream.Locator
Same as LocatorFile but with content negociation capabilities.
- Author:
- Maxime Lefrançois
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a LocatorFile without a specific working directory.LocatorFileAccept(String dir) Create a LocatorFile that uses the argument as it's working directory. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetName()booleaninthashCode()org.apache.jena.atlas.web.TypedInputStreamopen(LookUpRequest request) 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.Methods inherited from class fr.mines_stetienne.ci.sparql_generate.stream.LocatorAcceptBase
open
-
Constructor Details
-
LocatorFileAccept
public LocatorFileAccept()Create a LocatorFile without a specific working directory. Relative file names are relative to the working directory of the JVM. -
LocatorFileAccept
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(fr.mines_stetienne.ci.sparql_generate.stream.LookUpRequest)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
-