示例#1
0
文件: MS2.java 项目: vagisha/msdapl
 /**
  * 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();
   }
 }
示例#2
0
文件: MS2.java 项目: vagisha/msdapl
 /**
  * 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);
 }