public class JarWriter extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the writer.
|
void |
writeEntries(JarFile jarFile)
Write all entries from the specified jar file.
|
void |
writeManifest(Manifest manifest)
Write the specified manifest.
|
void |
writeNestedLibrary(String destination,
Library library)
Write a nested library.
|
public JarWriter(File file) throws FileNotFoundException, IOException
JarWriter instance.file - the file to writeIOException - if the file cannot be openedFileNotFoundException - if the file cannot be foundpublic void writeManifest(Manifest manifest) throws IOException
manifest - the manifest to writeIOException - of the manifest cannot be writtenpublic void writeEntries(JarFile jarFile) throws IOException
jarFile - the source jar fileIOException - if the entries cannot be writtenpublic void writeNestedLibrary(String destination, Library library) throws IOException
destination - the destination of the librarylibrary - the libraryIOException - if the write failspublic void close()
throws IOException
IOException - if the file cannot be closedCopyright © 2023. All rights reserved.