|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.riot.stream.LocatorFile
public class LocatorFile
Location files in the filing system. A FileLocator can have a "current directory" - this is separate from any location mapping (see @link{LocationMapping}) as it applies only to files.
| Constructor Summary | |
|---|---|
LocatorFile()
Create a LocatorFile without a specific working directory. |
|
LocatorFile(String dir)
Create a LocatorFile that uses the argument as it's working directory. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
boolean |
exists(String fileIRI)
|
String |
getName()
|
String |
getThisDir()
|
boolean |
hasCurrentDir()
|
int |
hashCode()
|
TypedInputStream |
open(String filenameIRI)
Open anything that looks a bit like a file name |
String |
toFileName(String filenameIRI)
Processing the filename for file: or relative filename and return a filename suitable for file operations. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocatorFile()
public LocatorFile(String dir)
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 this LocatorFile.
| Method Detail |
|---|
public String toFileName(String filenameIRI)
public String getThisDir()
public boolean hasCurrentDir()
public boolean exists(String fileIRI)
public TypedInputStream open(String filenameIRI)
open in interface Locatorpublic String getName()
getName in interface Locatorpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||