org.tranche.logs.activity
Class SignatureIndexEntry
java.lang.Object
org.tranche.logs.activity.SignatureIndexEntry
- All Implemented Interfaces:
- java.io.Serializable
public class SignatureIndexEntry
- extends java.lang.Object
- implements java.io.Serializable
Wrapper class for data that is held in the signature index file for activity log.
- Author:
- Bryan Smith - bryanesmith@gmail.com, James "Augie" Hill - augman85@gmail.com
- See Also:
- Serialized Form
|
Field Summary |
static int |
SIZE
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
SignatureIndexEntry
public SignatureIndexEntry(int index,
long offset,
int length)
- Parameters:
index - offset - length -
SignatureIndexEntry
public SignatureIndexEntry(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in -
- Throws:
java.io.IOException
SignatureIndexEntry
public SignatureIndexEntry(byte[] bytes)
throws java.io.IOException
- Parameters:
bytes -
- Throws:
java.io.IOException
getIndex
public int getIndex()
- Returns:
getLength
public int getLength()
- Returns:
getOffset
public long getOffset()
- Returns:
toByteArray
public byte[] toByteArray()
throws java.lang.Exception
- Returns:
-
- Throws:
java.lang.Exception
serialize
protected void serialize(java.io.OutputStream out)
throws java.io.IOException
- Parameters:
out -
- Throws:
java.io.IOException
deserialize
protected void deserialize(java.io.InputStream in)
throws java.io.IOException
- Parameters:
in -
- Throws:
java.io.IOException
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
- Returns:
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
- Parameters:
o -
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
This code is free for use both commercially and non-commercially as stated in the project's license