| java.lang.Object de.mcs.utils.XarUpdater
XarUpdater | public class XarUpdater (Code) | | Modifies files in an .ear or .jar archive file.
author: j.froehlich |
INDEX_NAME | final static String INDEX_NAME(Code) | | some special dir and file names.
|
MANIFEST_NAME | final static String MANIFEST_NAME(Code) | | some special dir and file names.
|
METAINF_NAME | final static String METAINF_NAME(Code) | | some special dir and file names.
|
XarUpdater | public XarUpdater(File aArchiveFile, File baseDirFile) throws IOException(Code) | | Constructing the xar updater.
Parameters: aArchiveFile - The archive file to use. Parameters: baseDirFile - the base file to work with. throws: IOException - if something goes wrong. |
XarUpdater | public XarUpdater(String archiveFilename, String baseDir) throws IOException(Code) | | Constructing the xar updater.
Parameters: archiveFilename - The archive file to use. Parameters: baseDir - the base file to work with. throws: IOException - if something goes wrong. |
addFile | final public void addFile(ZipOutputStream zipoutputstream, String aName, File file, byte[] buffer) throws IOException(Code) | | adding a file to the zip.
Parameters: zipoutputstream - the outputstream Parameters: aName - name of the entry Parameters: file - the file to add Parameters: buffer - a buffer throws: IOException - if something goes wrong. |
getFile | final public File getFile()(Code) | | getting the archive file. |
update | final public void update(File toArchiveFile, File[] files, String[] asNames) throws IOException(Code) | | update an archive.
Parameters: toArchiveFile - the archive file to update Parameters: files - the files to zip Parameters: asNames - as which names throws: IOException - if something goes wrong. |
|
|