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() |
protected void |
makeWritable() |
void |
setLength(int length) |
void |
setNormalFile(NormalFile normalFile) |
void |
setOffset(long offset) |
void |
setSha1(String sha1) |
equals, getChanged, getCreated, getId, hashCode, setChanged, setCreated, toStringpublic FileChunk()
public NormalFile getNormalFile()
public void setNormalFile(NormalFile normalFile)
public long getOffset()
public void setOffset(long offset)
public int getLength()
public void setLength(int length)
protected void assertWritable()
public void makeReadOnly()
protected void makeWritable()
public void jdoPreStore()
jdoPreStore in interface StoreCallbackpublic void jdoPostLoad()
jdoPostLoad in interface LoadCallbackpublic int compareTo(FileChunk other)
compareTo in interface Comparable<FileChunk>Copyright © 2013–2017. All rights reserved.