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, toString_getProperties, toString
public 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 StoreCallback
public void jdoPostLoad()
jdoPostLoad
in interface LoadCallback
public int compareTo(FileChunk other)
compareTo
in interface Comparable<FileChunk>
Copyright © 2013–2019. All rights reserved.