public class FileChunk extends Object
| Constructor and Description |
|---|
FileChunk(int chunkNum,
long offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ByteArrayHolder |
getBah() |
int |
getChunkNum() |
int |
getLength() |
long |
getOffset() |
org.apache.commons.pool2.ObjectPool<ByteArrayHolder> |
getPool() |
int |
hashCode() |
void |
setBah(ByteArrayHolder bah) |
void |
setBah(ByteArrayHolder bah,
org.apache.commons.pool2.ObjectPool<ByteArrayHolder> pool)
Sets the byte[] and indicates which pool this array is from.
|
void |
setPool(org.apache.commons.pool2.ObjectPool<ByteArrayHolder> pool) |
public int getChunkNum()
public long getOffset()
public int getLength()
public ByteArrayHolder getBah()
public void setBah(ByteArrayHolder bah)
public void setBah(ByteArrayHolder bah, org.apache.commons.pool2.ObjectPool<ByteArrayHolder> pool)
bah - pool - public org.apache.commons.pool2.ObjectPool<ByteArrayHolder> getPool()
public void setPool(org.apache.commons.pool2.ObjectPool<ByteArrayHolder> pool)
Copyright © 2017. All rights reserved.