public class Location extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
absolute(String filename)
Return an absolute filename where relative names are resolved from the
location
|
String |
absolute(String filename,
String extension)
Return an absolute filename where relative names are resolved from the
location
|
static Location |
create(Path directoryName)
Return a location for a directory on disk
|
static Location |
create(String directoryName)
Return a location for a directory on disk
|
boolean |
equals(Object obj) |
boolean |
exists()
Does the location exist (and it a directory, and is accessible)
|
boolean |
exists(String filename) |
boolean |
exists(String filename,
String ext) |
String |
getDirectoryPath() |
MetaFile |
getMetaFile() |
String |
getPath(String filename)
Return the name of the file relative to this location
|
String |
getPath(String filename,
String ext)
Return the name of the file, and extension, relative to this location
|
String |
getSubDirectory(String dirname) |
Location |
getSubLocation(String dirname) |
int |
hashCode() |
boolean |
isMem() |
boolean |
isMemUnique() |
static Location |
mem()
Return a fresh memory location : always unique, never .equals to another
location.
|
static Location |
mem(String name)
Return a memory location with a name
|
String |
toString() |
public static Location mem()
public static Location create(String directoryName)
public String getDirectoryPath()
public MetaFile getMetaFile()
public boolean isMem()
public boolean isMemUnique()
public String absolute(String filename, String extension)
public String absolute(String filename)
public boolean exists()
public boolean exists(String filename)
public String getPath(String filename)
public String getPath(String filename, String ext)
Licensed under the Apache License, Version 2.0