public void save(){
  try {
    File file=getOptionsFile();
    ByteArrayOutputStream outBuffer=new ByteArrayOutputStream();
    doSave(outBuffer);
    BufferedOutputStream outFile=new BufferedOutputStream(new FileOutputStream(file));
    ByteStreams.copy(new ByteArrayInputStream(outBuffer.toByteArray()),outFile);
    outFile.flush();
    outFile.close();
  }
 catch (  Throwable e) {
    GPLogger.log(e);
  }
}

public void save ( ) { try { File file = getOptionsFile ( ) ; ByteArrayOutputStream outBuffer = new ByteArrayOutputStream ( ) ; doSave ( outBuffer ) ; BufferedOutputStream outFile = new BufferedOutputStream ( new FileOutputStream ( file ) ) ; ByteStreams . copy ( new ByteArrayInputStream ( outBuffer . toByteArray ( ) ) , outFile ) ; outFile . flush ( ) ; outFile . close ( ) ; } catch ( Throwable e ) { GPLogger . log ( e ) ; } }
save the options file
