protected void initHeader() throws IOException {
  int result=raf.read();
  if (result == -1) {
    writeHeader();
  }
  readHeader();
}

protected void initHeader ( ) throws IOException { int result = raf . read ( ) ; if ( result == - 1 ) { writeHeader ( ) ; } readHeader ( ) ; }
reads or writes the header of a shape file . if the file is empty , a blank header is written and then read . if the file is not empty , the header is read . < p > after this function runs , the file pointer is set to byte 100 , the first byte of the first record in the file .
