| java.lang.Object org.geotools.data.shapefile.shp.IndexFile
Method Summary | |
public void | close() | protected void | finalize() | public int | getContentLength(int index) Get the content length of the given record in bytes, not 16 bit words. | public ShapefileHeader | getHeader() Get the header of this index file. | public int | getOffset(int index) Get the offset of the record (in 16-bit words). | public int | getOffsetInBytes(int index) Get the offset of the record (in real bytes, not 16-bit words). | public int | getRecordCount() Get the number of records in this index. |
IndexFile | public IndexFile(ReadableByteChannel channel, boolean useMemoryMappedBuffer) throws IOException(Code) | | Load the index file from the given channel.
Parameters: channel - The channel to read from. throws: IOException - If an error occurs. |
getContentLength | public int getContentLength(int index) throws IOException(Code) | | Get the content length of the given record in bytes, not 16 bit words.
Parameters: index - The index, from 0 to getRecordCount - 1 The lengh in bytes of the record. throws: IOException - |
getHeader | public ShapefileHeader getHeader()(Code) | | Get the header of this index file.
The header of the index file. |
getOffset | public int getOffset(int index) throws IOException(Code) | | Get the offset of the record (in 16-bit words).
Parameters: index - The index, from 0 to getRecordCount - 1 The offset in 16-bit words. throws: IOException - |
getOffsetInBytes | public int getOffsetInBytes(int index) throws IOException(Code) | | Get the offset of the record (in real bytes, not 16-bit words).
Parameters: index - The index, from 0 to getRecordCount - 1 The offset in bytes. throws: IOException - |
getRecordCount | public int getRecordCount()(Code) | | Get the number of records in this index.
The number of records. |
|
|