public class ZipDriverEntry extends ZipEntry implements FsArchiveEntry
DateTimeConverter.ZIP.getDateTimeConverter(),
ZipDriverEntry.Access, Entry.Size, Entry.TypeBZIP2, DEFLATED, MAX_DOS_TIME, MIN_DOS_TIME, PLATFORM_FAT, PLATFORM_UNIX, STORED, UNKNOWNALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN| Modifier | Constructor and Description |
|---|---|
|
ZipDriverEntry(String name) |
protected |
ZipDriverEntry(String name,
ZipEntry template) |
| Modifier and Type | Method and Description |
|---|---|
protected DateTimeConverter |
getDateTimeConverter()
Returns a
DateTimeConverter for the conversion of Java time
to DOS date/time fields and vice versa. |
long |
getSize(Entry.Size type)
Returns the size of the given type for this entry.
|
long |
getTime(Entry.Access type)
Returns the time of the given access type for this entry.
|
Entry.Type |
getType()
Returns the type of this archive entry.
|
boolean |
setSize(Entry.Size type,
long size)
Sets the size of the given type for this archive entry.
|
boolean |
setTime(Entry.Access type,
long time)
Sets the last access time of the given type for this archive entry.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
clearEncryption, clone, getComment, getCompressedSize, getCrc, getExternalAttributes, getExtra, getMethod, getName, getPlatform, getSize, getTime, isDirectory, isEncrypted, setComment, setCompressedSize, setCrc, setEncrypted, setExternalAttributes, setExtra, setMethod, setPlatform, setSize, setTimepublic ZipDriverEntry(String name)
protected DateTimeConverter getDateTimeConverter()
DateTimeConverter for the conversion of Java time
to DOS date/time fields and vice versa.
The implementation in the class ZipDriverEntry returns
DateTimeConverter.ZIP.
getDateTimeConverter in class ZipEntryDateTimeConverter.ZIPpublic long getSize(Entry.Size type)
EntryEntry.Type.FILE entries.getSize in interface Entrytype - the type of the size to return.Entry.UNKNOWN if not specified or the type is unsupported.public long getTime(Entry.Access type)
Entrypublic Entry.Type getType()
FsArchiveEntrygetType in interface FsArchiveEntrypublic boolean setSize(Entry.Size type, long size)
MutableEntrysetSize in interface MutableEntrytype - the size type.size - the size of the given size type for this archive entry in
bytes or
-1.false if and only if setting a size for the given type
is unsupported.public boolean setTime(Entry.Access type, long time)
MutableEntrysetTime in interface MutableEntrytype - the access type.time - the last time of the given access type for this archive
entry in milliseconds since the epoch or
-1.false if and only if setting a time for the given type
is unsupported.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.