public void add(ESRIRecord r) throws IOException {
  if (r.getShapeType() == fileShapeType) {
    verifyRecordBuffer(r.getBinaryStoreSize());
    int nBytes=r.write(recBuf,0);
    raf.seek(raf.length());
    raf.write(recBuf,0,nBytes);
  }
 else {
    Debug.error("ShapeFile.add(): type=" + r.getShapeType() + " does not match file type="+ fileShapeType);
  }
}

public void add ( ESRIRecord r ) throws IOException { if ( r . getShapeType ( ) == fileShapeType ) { verifyRecordBuffer ( r . getBinaryStoreSize ( ) ) ; int nBytes = r . write ( recBuf , 0 ) ; raf . seek ( raf . length ( ) ) ; raf . write ( recBuf , 0 , nBytes ) ; } else { Debug . error ( "ShapeFile.add(): type=" + r . getShapeType ( ) + " does not match file type=" + fileShapeType ) ; } }
adds a record to the end of this file . the record is written to the file at the end of the last record .
