protected void writeHeader() throws IOException {
  header=new byte[SHAPE_FILE_HEADER_LENGTH];
  writeBEInt(header,0,SHAPE_FILE_CODE);
  writeBEInt(header,24,50);
  writeLEInt(header,28,SHAPE_FILE_VERSION);
  writeLEInt(header,32,SHAPE_TYPE_NULL);
  writeLEDouble(header,36,0.0);
  writeLEDouble(header,44,0.0);
  writeLEDouble(header,52,0.0);
  writeLEDouble(header,60,0.0);
  raf.seek(0);
  raf.write(header,0,SHAPE_FILE_HEADER_LENGTH);
}

protected void writeHeader ( ) throws IOException { header = new byte [ SHAPE_FILE_HEADER_LENGTH ] ; writeBEInt ( header , 0 , SHAPE_FILE_CODE ) ; writeBEInt ( header , 24 , 50 ) ; writeLEInt ( header , 28 , SHAPE_FILE_VERSION ) ; writeLEInt ( header , 32 , SHAPE_TYPE_NULL ) ; writeLEDouble ( header , 36 , 0.0 ) ; writeLEDouble ( header , 44 , 0.0 ) ; writeLEDouble ( header , 52 , 0.0 ) ; writeLEDouble ( header , 60 , 0.0 ) ; raf . seek ( 0 ) ; raf . write ( header , 0 , SHAPE_FILE_HEADER_LENGTH ) ; }
writes a blank header into the shape file .
