1 6 21 22 package de.schlichtherle.io; 23 24 import java.io.FileNotFoundException ; 25 import java.net.URI ; 26 27 35 public abstract class AbstractArchiveDetector implements ArchiveDetector { 36 37 public File createFile(java.io.File blueprint) { 38 return new File(blueprint, this); 39 } 40 41 42 public File createFile(java.io.File delegate, File innerArchive) { 43 return new File(delegate, innerArchive, this); 44 } 45 46 47 public File createFile( 48 File blueprint, 49 java.io.File delegate, 50 File enclArchive) { 51 return new File(blueprint, delegate, enclArchive); 52 } 53 54 55 public File createFile(java.io.File parent, String child) { 56 return new File(parent, child, this); 57 } 58 59 60 public File createFile(String pathName) { 61 return new File(pathName, this); 62 } 63 64 65 public File createFile(String parent, String child) { 66 return new File(parent, child, this); 67 } 68 69 70 public File createFile(URI uri) { 71 return new File(uri, this); 72 } 73 74 75 public FileInputStream createFileInputStream(java.io.File file) 76 throws FileNotFoundException { 77 return new FileInputStream(file); 78 } 79 80 81 public FileOutputStream createFileOutputStream( 82 java.io.File file, 83 boolean append) 84 throws FileNotFoundException { 85 return new FileOutputStream(file, append); 86 } 87 } 88 | Popular Tags |