/** * Sets the MS2 data * * @param arg A StringBuffer containing the uncompressed MS2 data * @throws Exception If there is a problem compression the data */ public void setMS2Data(StringBuffer arg) throws Exception { try { this.ms2Data = Compresser.getInstance().compressStringBuffer(arg); } catch (Exception e) { throw new Exception("Error compressing MS2 Data: " + e.getMessage()); } finally { System.gc(); } }
/** * Set the contents of the supplied file as the MS2 Data * * @param file * @throws Exception */ public void setMS2File(File file) throws Exception { this.ms2Data = Compresser.getInstance().compressFile(file); }