public abstract class FileInfo extends TransferableObject implements Renderable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
absolutePath |
protected FileDataType |
dataType |
protected FileType |
fileType |
protected boolean |
isDirectory |
protected boolean |
isExisting |
protected long |
lastModified |
protected long |
length |
protected java.lang.String |
relBasePath |
protected java.io.File |
rootDir |
Modifier | Constructor and Description |
---|---|
protected |
FileInfo(java.lang.String fileName) |
protected |
FileInfo(java.lang.String fileName,
FileDataType dataType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAbsolutePath() |
java.lang.String |
getBasePath() |
FileDataType |
getDataType() |
java.lang.String |
getFileName() |
FileType |
getFileType() |
long |
getLastModified() |
long |
getLength() |
java.awt.Color |
getRenderColor() |
javax.swing.Icon |
getRenderIcon() |
java.lang.String |
getRenderText() |
boolean |
isAscii() |
boolean |
isBinary() |
boolean |
isDirectory() |
boolean |
isExisting() |
boolean |
isFile() |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
protected java.io.File rootDir
protected java.lang.String relBasePath
protected java.lang.String absolutePath
protected FileType fileType
protected FileDataType dataType
protected boolean isExisting
protected boolean isDirectory
protected long length
protected long lastModified
protected FileInfo(java.lang.String fileName)
protected FileInfo(java.lang.String fileName, FileDataType dataType)
public final FileType getFileType()
public final long getLastModified()
public final FileDataType getDataType()
public final boolean isAscii()
public final boolean isBinary()
public final boolean isExisting()
public final java.lang.String getFileName()
public final java.lang.String getBasePath()
public final java.lang.String getAbsolutePath()
public boolean isDirectory()
public boolean isFile()
public long getLength()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.awt.Color getRenderColor()
getRenderColor
in interface Renderable
public java.lang.String getRenderText()
getRenderText
in interface Renderable
public final javax.swing.Icon getRenderIcon()
getRenderIcon
in interface Renderable
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.