|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.archivers.zip.ZipLong
public final class ZipLong
Utility class that represents a four byte integer with conversion rules for the big endian byte order of ZIP files.
| Field Summary | |
|---|---|
private long |
m_value
|
| Constructor Summary | |
|---|---|
ZipLong(byte[] buffer)
Create instance from bytes. |
|
ZipLong(byte[] buffer,
int offset)
Create instance from the four bytes starting at offset. |
|
ZipLong(long value)
Create instance from a number. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long m_value
| Constructor Detail |
|---|
public ZipLong(long value)
value - the valuepublic ZipLong(byte[] buffer)
buffer - the buffer to read data from
public ZipLong(byte[] buffer,
int offset)
buffer - buffer to read data fromoffset - offset into buffer| Method Detail |
|---|
public byte[] getBytes()
public long getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare against
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||