public void initialize() throws ResourceInitializationException {
    
    fin = new File(((String)getConfigParameterValue("InputFile")).trim());
    text = "";
    try {
            buffer = new BufferedReader(new InputStreamReader(new FileInputStream(fin), encoding));
    } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
    } catch (FileNotFoundException e) {
            e.printStackTrace();
    }
  }