org.apache.commons.compress.archivers.zip
public final class ZipLong extends Object implements Cloneable
Version: $Revision: 155439 $
Field Summary | |
---|---|
long | m_value |
Constructor Summary | |
---|---|
ZipLong(long value)
Create instance from a number.
| |
ZipLong(byte[] buffer)
Create instance from bytes.
| |
ZipLong(byte[] buffer, int offset)
Create instance from the four bytes starting at offset.
|
Method Summary | |
---|---|
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.
|
long | getValue()
Get value as Java int.
|
int | hashCode()
Override to make two instances with same value equal.
|
Parameters: value the value
Since: 1.1
Parameters: buffer the buffer to read data from
Since: 1.1
Parameters: buffer buffer to read data from offset offset into buffer
Since: 1.1
Parameters: o the object to compare against
Returns: true if equyal, false otherwise
Since: 1.1
Returns: The value as bytes
Since: 1.1
Returns: The value
Since: 1.1
Returns: the hashcode
Since: 1.1