Package br.com.datawatcher.entity

Examples of br.com.datawatcher.entity.FileWrapper


  private static final Logger log = Logger.getLogger(MappedFolderListener.class.getName());

  @Override
  public void delete(SimpleRegister oldFile) {
    try {
      FileWrapper invokerFile = (FileWrapper) oldFile;
      this.removeInvoker(new File(invokerFile.getFile().getCanonicalPath()));
     
      log.info("An invokerFile has been removed. File : " + invokerFile.getFile().getName());
    } catch (IOException e) {
      throw new HPIRuntimeException(e);
    }
  }
View Full Code Here


  }

  @Override
  public void insert(SimpleRegister newFile) {
    try {
      FileWrapper invokerFile = (FileWrapper) newFile;
      this.addInvokerFile(new File(invokerFile.getFile().getCanonicalPath()));
     
      log.info("A new invokerFile has been added. File : " + invokerFile.getFile().getName());
    } catch (IOException e) {
      throw new HPIRuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of br.com.datawatcher.entity.FileWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.