| Constructor and Description |
|---|
LocatorFile()
Create a LocatorFile without a specific working directory.
|
LocatorFile(String dir)
Create a LocatorFile that uses the argument as it's working directory.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
public String toFileName(String filenameIRI)
public String getThisDir()
public boolean hasCurrentDir()
public boolean exists(String fileIRI)
public TypedInputStream open(String filenameIRI)
Licenced under the Apache License, Version 2.0