Packagenochump.util.zip
Classpublic class ZipEntry

This class represents a member of a zip archive. ZipFile will give you instances of this class as information about the members in an archive. On the other hand ZipOutput needs an instance of this class to create a new member.



Public Properties
 PropertyDefined by
  comment : String
Gets the extra data.
ZipEntry
  compressedSize : int
Gets the size of the compressed data.
ZipEntry
  crc : uint
Gets the crc of the uncompressed data.
ZipEntry
  extra : ByteArray
Gets the extra data.
ZipEntry
  method : int
Gets the compression method.
ZipEntry
  name : String
[read-only] Returns the entry name.
ZipEntry
  size : int
Gets the size of the uncompressed data.
ZipEntry
  time : Number
Gets the time of last modification of the entry.
ZipEntry
Public Methods
 MethodDefined by
  
ZipEntry(name:String)
Creates a zip entry with the given name.
ZipEntry
  
isDirectory():Boolean
Gets true, if the entry is a directory.
ZipEntry
  
toString():String
Gets the string representation of this ZipEntry.
ZipEntry
Property detail
commentproperty
comment:String  [read-write]

Gets the extra data.

Implementation
    public function get comment():String
    public function set comment(value:String):void
compressedSizeproperty 
compressedSize:int  [read-write]

Gets the size of the compressed data.

Implementation
    public function get compressedSize():int
    public function set compressedSize(value:int):void
crcproperty 
crc:uint  [read-write]

Gets the crc of the uncompressed data.

Implementation
    public function get crc():uint
    public function set crc(value:uint):void
extraproperty 
extra:ByteArray  [read-write]

Gets the extra data.

Implementation
    public function get extra():ByteArray
    public function set extra(value:ByteArray):void
methodproperty 
method:int  [read-write]

Gets the compression method.

Implementation
    public function get method():int
    public function set method(value:int):void
nameproperty 
name:String  [read-only]

Returns the entry name. The path components in the entry are always separated by slashes ('/').

Implementation
    public function get name():String
sizeproperty 
size:int  [read-write]

Gets the size of the uncompressed data.

Implementation
    public function get size():int
    public function set size(value:int):void
timeproperty 
time:Number  [read-write]

Gets the time of last modification of the entry.

Implementation
    public function get time():Number
    public function set time(value:Number):void
Constructor detail
ZipEntry()constructor
public function ZipEntry(name:String)

Creates a zip entry with the given name.

Parameters
name:String — the name. May include directory components separated by '/'.
Method detail
isDirectory()method
public function isDirectory():Boolean

Gets true, if the entry is a directory. This is solely determined by the name, a trailing slash '/' marks a directory.

Returns
Boolean
toString()method 
public function toString():String

Gets the string representation of this ZipEntry. This is just the name as returned by name.

Returns
String