public final class MkDir extends Object implements org.fuin.utils4j.ToDebugStringCapable
| Constructor and Description |
|---|
MkDir(File baseDir,
File dir)
Constructor with base directory and directory.
|
MkDir(String path)
Constructor with all arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCanonicalPath(File baseDir)
Returns the absolute directory based on a given base directory as String.
|
File |
getDestDir(File baseDir)
Returns the absolute file based on a given base directory.
|
String |
getPath()
Returns the path of the file.
|
String |
getSlashPath()
Returns the path with a slash ("/") used as separator.
|
int |
hashCode() |
String |
toDebugString() |
String |
toString() |
String |
toXML()
Creates an XML representation of the object.
|
public MkDir(File baseDir, File dir)
baseDir - Base directory for calculating the relative path.dir - Directory inside the base directory.public MkDir(String path)
path - Path relative to the base directory.public final String getPath()
public final String getCanonicalPath(File baseDir)
baseDir - Base directory.public final File getDestDir(File baseDir)
baseDir - Base directory.public final String getSlashPath()
public final String toXML()
public final String toDebugString()
toDebugString in interface org.fuin.utils4j.ToDebugStringCapableCopyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.