|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.io.archive.spi.RfsEntry
public class RfsEntry
A utility class which adapts a File instance to an
ArchiveEntry (RFS means Real File System).
| Field Summary | |
|---|---|
private String |
entryName
|
private File |
file
|
| Fields inherited from interface de.schlichtherle.io.archive.spi.ArchiveEntry |
|---|
SEPARATOR, SEPARATOR_CHAR, UNKNOWN |
| Constructor Summary | |
|---|---|
RfsEntry(File file)
Constructs a new RfsEntry. |
|
RfsEntry(File file,
String entryName)
Constructs a new RfsEntry. |
|
| Method Summary | |
|---|---|
Icon |
getClosedIcon()
Returns null. |
File |
getFile()
Returns the adapted file. |
ArchiveEntryMetaData |
getMetaData()
Returns null. |
String |
getName()
Returns the name provided to the constructor. |
private static String |
getName(File file)
|
Icon |
getOpenIcon()
Returns null. |
long |
getSize()
Returns the file size. |
long |
getTime()
Returns the file's last modification time. |
boolean |
isDirectory()
Returns whether the file is a directory or not. |
void |
setMetaData(ArchiveEntryMetaData metaData)
A no-op: Does nothing. |
void |
setTime(long time)
Sets the file's last modification time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final String entryName
private final File file
| Constructor Detail |
|---|
public RfsEntry(File file)
RfsEntry.
This constructor uses the file's path to build a valid entry name.
file - A valid File instance.
NullPointerException - If file is null.
public RfsEntry(File file,
String entryName)
RfsEntry.
file - A valid File instance.entryName - A valid archive entry name.
NullPointerException - If any parameter is null.| Method Detail |
|---|
public File getFile()
private static String getName(File file)
public String getName()
getName in interface ArchiveEntrypublic boolean isDirectory()
isDirectory in interface ArchiveEntrypublic long getSize()
getSize in interface ArchiveEntrypublic long getTime()
getTime in interface ArchiveEntryArchiveEntry.setTime(long)public void setTime(long time)
setTime in interface ArchiveEntrytime - The last modification time of this archive entry in
milliseconds since the epoch.ArchiveEntry.getTime()public Icon getOpenIcon()
null.
getOpenIcon in interface ArchiveEntrypublic Icon getClosedIcon()
null.
getClosedIcon in interface ArchiveEntrypublic ArchiveEntryMetaData getMetaData()
null.
getMetaData in interface ArchiveEntrypublic void setMetaData(ArchiveEntryMetaData metaData)
setMetaData in interface ArchiveEntrymetaData - The meta data - may not be null.
|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||