File file = new File("d:/websrc/a.dbf");                           
FileInputStream fis = new FileInputStream(file);                   
fis.read();                                                        
FileOutputStream fos = new FileOutputStream("d:/websrc/new.dbf");  
fos.write(0xf5);                                                   
byte[] buffer = new byte[1024];                                    
int length = -1;                                                   
while((length = fis.read(buffer))>-1){                             
fos.write(buffer,0,length);                                    
}                                                                  
fos.flush();                                                       
fos.close();                                                       
fis.close();