SHARE
TWEET

Untitled

a guest Aug 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public ResultPersistence() {
  2. }
  3.  
  4. @Value("${processing.time.file}")
  5. private String processingTimeFileName;
  6.  
  7. @Value("${output.file}")
  8. private String outputFileName;
  9.  
  10. public void writeToOutputFile(MappedPSTrans output) throws IOException {
  11.     FileWriter fileWriter = new FileWriter(outputFileName, true);
  12.     try {
  13.         fileWriter.write(output.toString());
  14.         fileWriter.write(System.lineSeparator());
  15.     } finally {
  16.         fileWriter.close();
  17.     }
  18. }
  19.  
  20. public void writeToPrcsngTimeFile(String data) throws IOException {
  21.     FileWriter fileWriter = new FileWriter(processingTimeFileName, true);
  22.     try {
  23.         fileWriter.write(data);
  24.         fileWriter.write(System.lineSeparator());
  25.     } finally {
  26.         fileWriter.close();
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top