@Override
  public final void encryptLogs() throws Exception {
    if (this.logDir != null && this.logDir.exists() && !this.logDir.isFile()) {
      File[] files = this.logDir.listFiles();
      if (files != null) {
        for (File fl : files) {
          if (fl.getName().endsWith(".log")) {
            this.cryptoHelper.encryptFile(fl.getPath(),
              this.backupDir + File.separator + fl.getName() + "en");
          }
        }
      }
    }
  }
@ Override public final void encryptLogs ( ) throws Exception { if ( this . logDir != null && this . logDir . exists ( ) && ! this . logDir . isFile ( ) ) { File [ ] files = this . logDir . listFiles ( ) ; if ( files != null ) { for ( File fl : files ) { if ( fl . getName ( ) . endsWith ( ".log" ) ) { this . cryptoHelper . encryptFile ( fl . getPath ( ) , this . backupDir + File . separator + fl . getName ( ) + "en" ) ; } } } } }
<p>Encrypt log files into backup directory.</p>
@throws Exception - an exception