| java.lang.Object edu.rice.cs.util.jar.JarBuilder
JarBuilder | public class JarBuilder (Code) | | |
JarBuilder | public JarBuilder(File file) throws IOException(Code) | | Creates a file file without a manifest
Parameters: file - the file to write the jar to throws: IOException - thrown if the file cannot be opened for writing |
JarBuilder | public JarBuilder(File jar, File manifest) throws IOException(Code) | | Creates an empty jar file with the given manifest
Parameters: jar - the file to write the jar to Parameters: manifest - the file that is the manifest for the archive throws: IOException - thrown if either file cannot be opened for reading |
JarBuilder | public JarBuilder(File jar, Manifest manifest)(Code) | | Creates an empty jar file with the given manifest
Parameters: jar - the file to write the jar to Parameters: manifest - the manifest file for the jar See Also: ManifestWriter |
addDirectoryRecursive | public void addDirectoryRecursive(File dir, String parent)(Code) | | Add the directory into the directory specified by parent
Parameters: dir - the directory to add Parameters: parent - the path inside the jar that the directory should be added to |
addDirectoryRecursive | public void addDirectoryRecursive(File dir, String parent, FileFilter filter)(Code) | | Add the directory into the directory specified by parent
Parameters: dir - the directory to add Parameters: parent - the path inside the jar that the directory should be added to Parameters: filter - the filter used to filter the files |
addFile | public void addFile(File file, String parent, String fileName) throws IOException(Code) | | Adds the file to the given path and name
Parameters: file - the file to be added Parameters: parent - the directory to the path in which the file is to be added Parameters: fileName - the name of the file in the archive |
makeDirectory | public boolean makeDirectory(String parent, String dirName)(Code) | | Makes a directory in the jar file
Parameters: parent - The name of the parent that the directory is to be created in Parameters: dirName - The name of the directory to be created Returns true on success, false on failure |
|
|