|
|||||||||
| 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(java.io.File baseDir,
java.io.File file)
Constructor with base directory and file. |
|
AbstractFile(java.lang.String path,
java.lang.String filename,
java.lang.String md5Hash)
Constructor with all arguments. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCanonicalPathAndFilename(java.io.File baseDir)
Returns the absolute file based on a given base directory as String. |
java.io.File |
getDestFile(java.io.File baseDir)
Returns the absolute file based on a given base directory. |
java.lang.String |
getFilename()
Returns the filename. |
java.lang.String |
getMd5Hash()
Returns the hash code. |
java.lang.String |
getPath()
Returns the path of the file. |
java.lang.String |
getRelativeSlashPathAndFilename()
Returns a relative path and filename. |
java.lang.String |
getSlashPath()
Returns the path with a slash ("/") used as path separator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFile(java.io.File baseDir,
java.io.File file)
baseDir - Base directory for calculating the relative path.file - File inside the base directory.
public AbstractFile(java.lang.String path,
java.lang.String filename,
java.lang.String md5Hash)
path - Path relative to the base directory.filename - Filename without path.md5Hash - MD5 hash code of the file.| Method Detail |
|---|
public final java.lang.String getPath()
public final java.lang.String getFilename()
public final java.lang.String getMd5Hash()
public final java.lang.String getCanonicalPathAndFilename(java.io.File baseDir)
baseDir - Base directory.
public final java.lang.String getRelativeSlashPathAndFilename()
public final java.lang.String getSlashPath()
public final java.io.File getDestFile(java.io.File baseDir)
baseDir - Base directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||