public class DataFile extends LinkedNode implements Comparable<DataFile>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
dataFileId |
protected File |
file |
protected int |
length |
protected int |
preferedSize |
protected int |
referenceCount |
next, prev, tail| Modifier and Type | Method and Description |
|---|---|
void |
closeRandomAccessFile(RandomAccessFile file) |
int |
compareTo(DataFile df) |
int |
decrement() |
boolean |
delete() |
boolean |
equals(Object o) |
Integer |
getDataFileId() |
int |
getLength() |
int |
getReferenceCount() |
int |
hashCode() |
int |
increment() |
void |
incrementLength(int size) |
boolean |
isUnused() |
void |
move(File targetDirectory) |
RandomAccessFile |
openRandomAccessFile(boolean appender) |
void |
setLength(int length) |
String |
toString() |
getHeadNode, getNext, getPrevious, getTailNode, isHeadNode, isTailNode, linkAfter, linkBefore, reset, unlinkprotected final Integer dataFileId
protected final int preferedSize
protected int length
protected int referenceCount
public Integer getDataFileId()
public int getLength()
public void setLength(int length)
public void incrementLength(int size)
public int increment()
public int decrement()
public int getReferenceCount()
public boolean isUnused()
public RandomAccessFile openRandomAccessFile(boolean appender) throws IOException
IOExceptionpublic void closeRandomAccessFile(RandomAccessFile file) throws IOException
IOExceptionpublic boolean delete() throws IOException
IOExceptionpublic void move(File targetDirectory) throws IOException
IOExceptionpublic int compareTo(DataFile df)
compareTo in interface Comparable<DataFile>Copyright © 2005–2017. All rights reserved.