| java.lang.Object net.sf.javaguard.ManifestContainer
ManifestContainer | public class ManifestContainer (Code) | | Manifest file container for the obfuscator. Manages the Manifest file entry
names and attributes taken from at least one input stream so they can be
manipulated by the obfuscator when the obfuscated contents are written to
the output stream.
author: Thorsten Heit |
Constructor Summary | |
public | ManifestContainer() Creates a new empty manifest file container. | public | ManifestContainer(Manifest mf) Creates a new manifest file container and adds the given manifest to the
internal manifest container. |
ManifestContainer | public ManifestContainer()(Code) | | Creates a new empty manifest file container.
|
ManifestContainer | public ManifestContainer(Manifest mf)(Code) | | Creates a new manifest file container and adds the given manifest to the
internal manifest container.
Parameters: manifest - the manifest |
addManifest | public void addManifest(Manifest mf)(Code) | | Adds the given Manifest to the manifest container. The entry names and
attributes read will be merged in with the current manifest entries.
Parameters: mf - the manifest to add |
toBase64 | public static String toBase64(byte[] b)(Code) | | Encode a byte[] as a Base64 string (see RFC1521, Section 5.2).
Parameters: b - the byte array the Base64 string for the byte array |
updateManifest | public void updateManifest(String oldName, String newName, MessageDigest[] digests)(Code) | | Update an entry in the manifest file.
Parameters: inName - the file name of the original file Parameters: outName - the output file name Parameters: digests - the message digests |
write | public void write(OutputStream os) throws IOException(Code) | | Writes the Manifest to the specified OutputStream.
Attributes.Name.MANIFEST_VERSION must be set in
MainAttributes prior to invoking this method.
Parameters: os - the output stream throws: IOException - if an I/O error has occurred |
|
|