public class FileChunk extends Entity implements Comparable<FileChunk>, StoreCallback, LoadCallback
| Constructor and Description |
|---|
FileChunk() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertWritable() |
int |
compareTo(FileChunk other) |
int |
getLength() |
NormalFile |
getNormalFile() |
long |
getOffset() |
String |
getSha1() |
void |
jdoPostLoad() |
void |
jdoPreStore() |
void |
makeReadOnly() |
void |
setLength(int length) |
void |
setOffset(long offset) |
void |
setRepoFile(NormalFile normalFile) |
void |
setSha1(String sha1) |
equals, getChanged, getCreated, getId, hashCode, setChanged, setCreated, toStringpublic FileChunk()
public NormalFile getNormalFile()
public void setRepoFile(NormalFile normalFile)
public long getOffset()
public void setOffset(long offset)
public int getLength()
public void setLength(int length)
protected void assertWritable()
public void makeReadOnly()
public void jdoPreStore()
jdoPreStore in interface StoreCallbackpublic void jdoPostLoad()
jdoPostLoad in interface LoadCallbackpublic int compareTo(FileChunk other)
compareTo in interface Comparable<FileChunk>Copyright © 2013-2014. All Rights Reserved.