public final class SrcDir extends Object implements org.fuin.utils4j.ToDebugStringCapable
| Constructor and Description |
|---|
SrcDir(String path,
String srcPathUrl)
Constructor with all arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCanonicalPathAndFilename(File baseDir,
String filename)
Returns the absolute file based on a given base directory as String.
|
File |
getDestFile(File baseDir,
String filename)
Returns the absolute file based on a given base directory.
|
String |
getPath()
Returns the path of the file.
|
String |
getRelativeSlashPathAndFilename(String filename)
Returns a relative path and filename.
|
String |
getSlashPath()
Returns the path with a slash ("/") used as path separator.
|
URL |
getSrcFileURL(String filename)
Returns the URL where the source file is located.
|
String |
getSrcPathUrl()
Returns the URL where the source directory is located.
|
int |
hashCode() |
String |
toDebugString() |
String |
toString() |
String |
toXML()
Creates an XML representation of the object.
|
public final String getPath()
public final String getSrcPathUrl()
public final URL getSrcFileURL(String filename)
MalformedURLException is wrapped into a
RuntimeException.filename - Name of the file to return a URL for.public final String getCanonicalPathAndFilename(File baseDir, String filename)
baseDir - Base directory.filename - Name of a file inside the directory.public final String getRelativeSlashPathAndFilename(String filename)
filename - Name of a file inside the directory.public final String getSlashPath()
public final File getDestFile(File baseDir, String filename)
baseDir - Base directory.filename - Name of a file inside the directory.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.