public class ZipDriverEntry extends ZipEntry implements FsArchiveEntry
DateTimeConverter.ZIP
.getDateTimeConverter()
,
ZipDriver
Entry.Access, Entry.Size, Entry.Type
BZIP2, DEFLATED, MAX_DOS_TIME, MIN_DOS_TIME, PLATFORM_FAT, PLATFORM_UNIX, STORED, UNKNOWN
ALL_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, setTime
public 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 ZipEntry
DateTimeConverter.ZIP
public long getSize(Entry.Size type)
Entry
Entry.Type.FILE
entries.getSize
in interface Entry
type
- the type of the size to return.Entry.UNKNOWN
if not specified or the type is unsupported.public long getTime(Entry.Access type)
Entry
public Entry.Type getType()
FsArchiveEntry
getType
in interface FsArchiveEntry
public boolean setSize(Entry.Size type, long size)
MutableEntry
setSize
in interface MutableEntry
type
- 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)
MutableEntry
setTime
in interface MutableEntry
type
- 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.