se.entitymanager.logic.file
Class FileLogic.CopyDirVisitor

java.lang.Object
  extended by se.entitymanager.logic.file.FileLogic.CopyDirVisitor
Enclosing class:
FileLogic

 class FileLogic.CopyDirVisitor
extends java.lang.Object

Inner Class used to copy whole directories. Does the actual copying of the files in a directory to be copied. Works together with the inner class FileTreeWalker


Field Summary
private  java.io.File sourceDir
           
private  java.io.File targetDir
           
 
Constructor Summary
FileLogic.CopyDirVisitor(java.io.File sourceDir, java.io.File targetDir)
           
 
Method Summary
 void copyFile(java.io.File source, java.io.File target)
           
 void visitDirectory(java.io.File f)
           
 void visitFile(java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceDir

private java.io.File sourceDir

targetDir

private java.io.File targetDir
Constructor Detail

FileLogic.CopyDirVisitor

public FileLogic.CopyDirVisitor(java.io.File sourceDir,
                                java.io.File targetDir)
Method Detail

visitDirectory

public void visitDirectory(java.io.File f)
                    throws java.io.IOException
Throws:
java.io.IOException

visitFile

public void visitFile(java.io.File f)
               throws java.io.IOException
Throws:
java.io.IOException

copyFile

public void copyFile(java.io.File source,
                     java.io.File target)
              throws java.io.IOException
Throws:
java.io.IOException