|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.io.formats.ObjectDatafile
com.partnersoft.v3x.apps.Propagate.ChecksumDatafile
public class ChecksumDatafile
An ObjectDatafile for storing SheetCoords. Ignores content - you'll have to deal with that all by yerself, and variable-length strings complicate things. More than likely you'll want one of these for each content anyway.
| Field Summary | |
|---|---|
static int |
FILENAMEMAX
|
static byte[] |
fillerBuffer
|
static int |
HEADERSIZE
|
static int |
RECORDSIZE
|
| Constructor Summary | |
|---|---|
ChecksumDatafile()
|
|
ChecksumDatafile(java.lang.String filename)
|
|
| Method Summary | |
|---|---|
protected int |
compareImp(java.io.RandomAccessFile filet,
long seekA,
long seekB)
Subclasses may override this to compare two records directly. |
protected int |
compareImp(java.io.RandomAccessFile filet,
java.lang.Object key)
Subclasses may override this to compare the seeked-to record to a key. |
long |
readChecksum()
Gets the checksum out of the header. |
protected java.lang.Object |
readHeaderImp(java.io.RandomAccessFile filet)
Override this if you want something returned from read header. |
protected java.lang.Object |
readKeyImp(java.io.RandomAccessFile filet)
Subclasses may override this to read the key for a record. |
protected void |
readRecordImp(java.lang.Object recycleMe,
java.io.RandomAccessFile filet)
Subclasses must override this to read an object from the fixed-length format, given an object to put the results into. |
protected java.lang.Object |
readRecordImp(java.io.RandomAccessFile filet)
Subclasses must override this to read an object from the fixed-length format. |
void |
updateChecksum()
This is special. |
protected void |
writeHeaderImp(java.lang.Object header,
java.io.RandomAccessFile filet)
Override this if you want it to do anything. |
protected void |
writeRecordImp(java.lang.Object source,
java.io.RandomAccessFile filet)
Subclasses must override this to write out the object in the desired form. |
| Methods inherited from class com.partnersoft.v3x.io.formats.ObjectDatafile |
|---|
appendRecord, clear, close, compare, compare, findClosest, getFile, getHeaderSize, getRecordSize, getSize, openRead, openWrite, readHeader, readKey, readRecord, readRecord, search, setHeaderSize, setRecordSize, sort, writeHeader, writeRecord |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FILENAMEMAX
public static final int RECORDSIZE
public static final int HEADERSIZE
public static final byte[] fillerBuffer
| Constructor Detail |
|---|
public ChecksumDatafile()
public ChecksumDatafile(java.lang.String filename)
| Method Detail |
|---|
public void updateChecksum()
throws java.io.IOException
java.io.IOException
public long readChecksum()
throws java.io.IOException
java.io.IOException
protected void writeRecordImp(java.lang.Object source,
java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
writeRecordImp in class ObjectDatafilejava.io.IOException
protected java.lang.Object readRecordImp(java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
readRecordImp in class ObjectDatafilejava.io.IOException
protected void readRecordImp(java.lang.Object recycleMe,
java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafileThe RandomAccessFile is advanced to the correct spot; just read away.
readRecordImp in class ObjectDatafilejava.io.IOException
protected int compareImp(java.io.RandomAccessFile filet,
long seekA,
long seekB)
throws java.io.IOException
ObjectDatafile
compareImp in class ObjectDatafilejava.io.IOException
protected int compareImp(java.io.RandomAccessFile filet,
java.lang.Object key)
throws java.io.IOException
ObjectDatafile
compareImp in class ObjectDatafilejava.io.IOException
protected java.lang.Object readKeyImp(java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
readKeyImp in class ObjectDatafilejava.io.IOException
protected java.lang.Object readHeaderImp(java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
readHeaderImp in class ObjectDatafilejava.io.IOException
protected void writeHeaderImp(java.lang.Object header,
java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
writeHeaderImp in class ObjectDatafilejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||