public class Chunk
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
chunk
Chunk payload
|
private int |
column
Start column
|
static int |
HEADER_SIZE
Header size
|
private int |
row
Start row
|
private int |
size
Chunk size
|
| Constructor and Description |
|---|
Chunk(byte[] chunk)
Constructor.
|
Chunk(int row,
int column,
int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
This method returns true if this object is equal to the specified
object.
|
byte[] |
getChunk()
Get chunk payload.
|
int |
getColumn()
Get start column.
|
int |
getRow()
Get start row.
|
int |
getSize()
Get chunk size.
|
int |
getTextSize()
Get text size.
|
int |
hashCode()
Return the unique hash code for this object.
|
public static final int HEADER_SIZE
private final int row
private final int column
private int size
private byte[] chunk
public Chunk(int row,
int column,
int size)
row - Start row;column - Start column;size - Chunk size.public Chunk(byte[] chunk)
chunk - Chunk payload.public byte[] getChunk()
public int getRow()
public int getColumn()
public int getSize()
public int getTextSize()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Another Chunk object to check for equality.