org_aspectj_util_UtilModuleTests_java
org.aspectj.util.FileUtil
throws IOException {  if ((null == fromDir) || (!fromDir.canRead())) { return 0; } final boolean haveSuffix = ((null != fromSuffix) && (0 < fromSuffix.length())); final int slen = (!haveSuffix ? 0 : fromSuffix.length());  if (!toDir.exists()) { toDir.mkdirs(); } final String[] fromFiles; if (!haveSuffix) { fromFiles = fromDir.list(); } else { FilenameFilter filter = new FilenameFilter() { public boolean accept(File dir, String name) { return (new File(dir, name).isDirectory() || (name.endsWith(fromSuffix))); } }; fromFiles = fromDir.list(filter); } int result = 0; final int MAX = (null == fromFiles ? 0 : fromFiles.length); for (int i = 0; i < MAX; i++) { String filename = fromFiles[i]; File fromFile = new File(fromDir, filename); if (fromFile.canRead()) { if (fromFile.isDirectory()) { result += copyDir(fromFile, new File(toDir, filename), fromSuffix, toSuffix, delegate); } else if (fromFile.isFile()) { if (haveSuffix) { filename = filename.substring(0, filename.length() - slen); } if (null != toSuffix) { filename = filename + toSuffix; } File targetFile = new File(toDir, filename); if ((null == delegate) || delegate.accept(targetFile)) { copyFile(fromFile, targetFile); } result++; } } } return result;

 -> java.io.File.canRead(): boolean -> java.io.File.exists(): boolean -> java.io.File.mkdirs(): boolean -> java.io.File.list(): java.lang.String[] -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void -> java.io.File.canRead(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.equals(java.lang.Object): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.File.getParentFile(): java.io.File -> java.io.File.canWrite(): boolean -> java.io.File.canWrite(): boolean -> java.io.File.isDirectory(): boolean -> java.io.File.isFile(): boolean -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.OutputStream.write(byte[],int,int): void -> java.io.InputStream.read(byte[],int,int): int -> java.io.FileOutputStream.close(): void -> java.io.FileInputStream.close(): void