| Constructor and Description |
|---|
AbstractFile(File baseDir,
File file)
Constructor with base directory and file.
|
AbstractFile(String path,
String filename,
String md5Hash)
Constructor with all arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCanonicalPathAndFilename(File baseDir)
Returns the absolute file based on a given base directory as String.
|
File |
getDestFile(File baseDir)
Returns the absolute file based on a given base directory.
|
String |
getFilename()
Returns the filename.
|
String |
getMd5Hash()
Returns the hash code.
|
String |
getPath()
Returns the path of the file.
|
String |
getRelativeSlashPathAndFilename()
Returns a relative path and filename.
|
String |
getSlashPath()
Returns the path with a slash ("/") used as path separator.
|
int |
hashCode() |
public AbstractFile(File baseDir, File file)
baseDir - Base directory for calculating the relative path.file - File inside the base directory.public final String getPath()
public final String getFilename()
public final String getMd5Hash()
public final String getCanonicalPathAndFilename(File baseDir)
baseDir - Base directory.public final String getRelativeSlashPathAndFilename()
public final String getSlashPath()
public final File getDestFile(File baseDir)
baseDir - Base directory.Copyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.