Ejemplo n.º 1
0
 public String getRestoreLogContent() {
   StringBuilder builder = new StringBuilder();
   try {
     File log = new File(getLogDirectory(), RESTORE_LOG);
     builder.append(IOUtils.toString(new FileReader(log)));
     builder.append(m_mailboxManager.getMailboxRestoreLog());
     return builder.toString();
   } catch (FileNotFoundException ex) {
     throw new UserException("&log.found.ex");
   } catch (IOException ex) {
     throw new UserException("&log.read.ex");
   }
 }