Constructor and Description |
---|
ZipShort(byte[] bytes)
Create instance from bytes.
|
ZipShort(byte[] bytes,
int offset)
Create instance from the two bytes starting at offset.
|
ZipShort(int value)
Create instance from a number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Override to make two instances with same value equal.
|
byte[] |
getBytes()
Get value as two bytes in big endian byte order.
|
int |
getValue()
Get value as Java int.
|
int |
hashCode()
Override to make two instances with same value equal.
|
public ZipShort(int value)
public ZipShort(byte[] bytes)
public ZipShort(byte[] bytes, int offset)
public byte[] getBytes()
public int getValue()
public boolean equals(Object o)
Copyright © 2001-2013 Codehaus. All Rights Reserved.