|
|||||||||
| 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.graphics.codec.shapeFile.SHXFile
public class SHXFile
a shx file. simply an index into the shp file
| Constructor Summary | |
|---|---|
SHXFile(java.lang.String filename)
|
|
| Method Summary | |
|---|---|
DoubleRectangle |
getExtents()
|
java.io.RandomAccessFile |
getFile()
If you just have to bang on the file, use this. |
int |
getNumberOfRecords()
|
int |
getRecordType()
|
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 |
setExtents(DoubleRectangle dr)
|
void |
setNumberOfRecords(int newNumber)
|
void |
setRecordType(int newType)
|
void |
updateHeader(int newNumberOfRecords,
DoubleRectangle extents,
java.io.RandomAccessFile filet)
this will update the record length and extents |
void |
writeHeader()
|
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, compareImp, compareImp, findClosest, getHeaderSize, getRecordSize, getSize, openRead, openWrite, readHeader, readHeaderImp, readKey, readKeyImp, 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 |
| Constructor Detail |
|---|
public SHXFile(java.lang.String filename)
| Method Detail |
|---|
public java.io.RandomAccessFile getFile()
ObjectDatafile
getFile in class ObjectDatafile
protected void writeRecordImp(java.lang.Object source,
java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
writeRecordImp in class ObjectDatafilejava.io.IOExceptionprotected java.lang.Object readRecordImp(java.io.RandomAccessFile filet)
ObjectDatafile
readRecordImp in class ObjectDatafile
protected void readRecordImp(java.lang.Object recycleMe,
java.io.RandomAccessFile filet)
ObjectDatafileThe RandomAccessFile is advanced to the correct spot; just read away.
readRecordImp in class ObjectDatafile
public void writeHeader()
throws java.io.IOException
java.io.IOException
protected void writeHeaderImp(java.lang.Object header,
java.io.RandomAccessFile filet)
throws java.io.IOException
ObjectDatafile
writeHeaderImp in class ObjectDatafilejava.io.IOException
public void updateHeader(int newNumberOfRecords,
DoubleRectangle extents,
java.io.RandomAccessFile filet)
public void setExtents(DoubleRectangle dr)
public DoubleRectangle getExtents()
public void setNumberOfRecords(int newNumber)
public int getNumberOfRecords()
public void setRecordType(int newType)
public int getRecordType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||