|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.AbstractFile
public abstract class AbstractFile
A file inside a base directory. This class is immutable.
| Constructor Summary | |
|---|---|
AbstractFile(File baseDir,
File file)
Constructor with base directory and file. |
|
AbstractFile(String path,
String filename,
String md5Hash)
Constructor with all arguments. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFile(File baseDir,
File file)
baseDir - Base directory for calculating the relative path.file - File inside the base directory.
public AbstractFile(String path,
String filename,
String md5Hash)
path - Path relative to the base directory.filename - Filename without path.md5Hash - MD5 hash code of the file.| Method Detail |
|---|
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.
public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||