API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.zip. ZipLong View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ZipLong
Implements
 Cloneable
Subclasses
Description
publicfinal class ZipLong
Utility class that represents a four byte integer with conversion rules for the big endian byte order of ZIP files.
See also:   
Constructors
public ZipLong (byte[] bytes)
  Create instance from bytes.
public ZipLong (byte[] bytes, int offset)
  Create instance from the four bytes starting at offset.
public ZipLong (long value)
  Create instance from a number.
Methods
Hide/Show inherited methods
public boolean equals (java.lang.Object o)
  Override to make two instances with same value equal.
public byte getBytes ()
  Get value as four bytes in big endian byte order.
publicstatic byte getBytes (long value)
  Get value as four bytes in big endian byte order.
public long getValue ()
  Get value as Java long.
publicstatic long getValue (byte[] bytes)
  Helper method to get the value as a Java long from a four-byte array
publicstatic long getValue (byte[] bytes, int offset)
  Helper method to get the value as a Java long from four bytes starting at given array offset
public int hashCode ()
  Override to make two instances with same value equal.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar