|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.io.shpapi.FileHeader
Class representing an ESRI Index File Header.
Uses class ByteUtils ShapeUtils modified
from the original package com.bbn.openmap.layer.shape
Copyright (C) 1998 BBN Corporation 10 Moulton St. Cambridge, MA 02138
Last changes:
07.01.2000 ap: all methods copied from ShapeFileHeader
07.01.2000 ap: constructor renamed
16.08.2000 ap: method writeHeader(..) added
Field Summary | |
private long |
fileLength
|
private SHPEnvelope |
fileMBR
|
private int |
fileShapeType
|
private int |
fileVersion
|
private byte[] |
header
|
private java.io.RandomAccessFile |
rafShp
|
Constructor Summary | |
FileHeader(java.io.RandomAccessFile rafShp_)
Construct a IndexFileHeader from a file name. |
Method Summary | |
long |
getFileLength()
method: getFileLength() returns the length of the shape file in bytes |
SHPEnvelope |
getFileMBR()
method: getFileMBR(); Returns the bounding box of this shape file. |
int |
getFileShapeType()
method: getFileShapeType() returns the code for the shape type of the file |
int |
getFileVersion()
method: getFileVersion() returns the version of the shape file |
private void |
initHeader()
Reads the header of a Shape file. |
private void |
readHeader()
Reads and parses the header of the file. |
void |
writeHeader()
method: writeHeader() Writes a blank header into the shape file. |
void |
writeHeader(int filelength,
int shptype,
SHPEnvelope mbr)
method: writeHeader(int filelength, byte shptype,SHPEnvelope mbr) Writes a header into the shape file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private byte[] header
private long fileLength
private int fileVersion
private int fileShapeType
private SHPEnvelope fileMBR
private java.io.RandomAccessFile rafShp
Constructor Detail |
public FileHeader(java.io.RandomAccessFile rafShp_) throws java.io.IOException
Method Detail |
public SHPEnvelope getFileMBR()
public long getFileLength()
public int getFileVersion()
public int getFileShapeType()
private void initHeader() throws java.io.IOException
java.io.IOException
public void writeHeader() throws java.io.IOException
java.io.IOException
public void writeHeader(int filelength, int shptype, SHPEnvelope mbr) throws java.io.IOException
java.io.IOException
private void readHeader() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |