1 25 26 package org.objectweb.jonas_lib.genbase.archive; 27 28 import java.io.File ; 29 import java.io.IOException ; 30 import java.io.InputStream ; 31 import java.util.List ; 32 import java.util.jar.Manifest ; 33 34 40 public interface Archive { 41 42 47 void addDirectory(File directory); 48 49 56 void addDirectoryIn(String dirName, File directory); 57 58 63 void addFile(File file); 64 65 71 void addFile(File file, String name); 72 73 79 void addFileIn(String dirName, File file); 80 81 86 File getRootFile(); 87 88 93 Manifest getManifest(); 94 95 104 InputStream getInputStream(String filename) throws IOException ; 105 106 112 List getContainedFiles(); 113 114 119 boolean isPacked(); 120 121 126 String getName(); 127 128 132 void close() throws IOException ; 133 } | Popular Tags |