API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.zip. ZipShort View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ZipShort
Implements
 Cloneable
Subclasses
Description
publicfinal class ZipShort
Utility class that represents a two byte integer with conversion rules for the big endian byte order of ZIP files.
See also:   
Constructors
public ZipShort (byte[] bytes)
  Create instance from bytes.
public ZipShort (byte[] bytes, int offset)
  Create instance from the two bytes starting at offset.
public ZipShort (int 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 two bytes in big endian byte order.
publicstatic byte getBytes (int value)
  Get value as two bytes in big endian byte order.
public int getValue ()
  Get value as Java int.
publicstatic int getValue (byte[] bytes)
  Helper method to get the value as a java int from a two-byte array
publicstatic int getValue (byte[] bytes, int offset)
  Helper method to get the value as a java int from two 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