public void initialize() throws ResourceInitializationException {
    fout = new File(((String)getConfigParameterValue("OutputFile")).trim());
    
    try {
      buffer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fout, false), encoding));
    } catch (UnsupportedEncodingException e) {
      e.printStackTrace();
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    }
  }