public class DataFile extends LinkedNode<DataFile> implements java.lang.Comparable<DataFile>
| Modifier and Type | Field and Description |
|---|---|
protected SequenceSet |
corruptedBlocks |
protected java.lang.Integer |
dataFileId |
protected java.io.File |
file |
protected int |
length |
list, next, prev| Modifier and Type | Method and Description |
|---|---|
void |
closeRandomAccessFile(java.io.RandomAccessFile file) |
int |
compareTo(DataFile df) |
boolean |
delete() |
boolean |
equals(java.lang.Object o) |
SequenceSet |
getCorruptedBlocks() |
java.lang.Integer |
getDataFileId() |
java.io.File |
getFile() |
int |
getLength() |
int |
hashCode() |
void |
incrementLength(int size) |
void |
move(java.io.File targetDirectory) |
java.io.RandomAccessFile |
openRandomAccessFile() |
void |
setLength(int length) |
java.lang.String |
toString() |
getHeadNode, getList, getNext, getNextCircular, getPrevious, getPreviousCircular, getTailNode, isHeadNode, isLinked, isTailNode, linkAfter, linkAfter, linkBefore, linkBefore, linkToHead, linkToTail, splitAfter, splitBefore, unlinkprotected final java.io.File file
protected final java.lang.Integer dataFileId
protected volatile int length
protected final SequenceSet corruptedBlocks
public java.io.File getFile()
public java.lang.Integer getDataFileId()
public int getLength()
public void setLength(int length)
public void incrementLength(int size)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.io.RandomAccessFile openRandomAccessFile() throws java.io.IOException
java.io.IOExceptionpublic void closeRandomAccessFile(java.io.RandomAccessFile file) throws java.io.IOException
java.io.IOExceptionpublic boolean delete() throws java.io.IOException
java.io.IOExceptionpublic void move(java.io.File targetDirectory) throws java.io.IOException
java.io.IOExceptionpublic SequenceSet getCorruptedBlocks()
public int compareTo(DataFile df)
compareTo in interface java.lang.Comparable<DataFile>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2005-2012. All Rights Reserved.