code: private static String getFileParameterValue(FaxJob faxJob)
      {
          String value=null;
          File file=faxJob.getFile();
          if(file!=null)
          {
              try
              {
                  //read file (only text files supported)
                  value=IOHelper.readTextFile(faxJob.getFile());
              }
              catch(IOException exception)
              {
                  throw new FaxException("Error while reading file.",exception);
              }
          }
      
          return value;
      }
docs: This function returns the file parameter value based on the file
  content.
  
  @param   faxJob
  The fax job object
  @return  The file parameter value