|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.compiler.PackagerBase
com.izforge.izpack.compiler.MultiVolumePackager
public class MultiVolumePackager
The packager class. The packager is used by the compiler to put files into an installer, and create the actual installer files.
This is a packager, which packs everything into multi volumes.
Field Summary | |
---|---|
private XMLElement |
configdata
|
static java.lang.String |
INSTALLER_PAK_NAME
|
private java.util.zip.ZipOutputStream |
primaryJarStream
Executable zipped output stream. |
Fields inherited from class com.izforge.izpack.compiler.PackagerBase |
---|
alreadyWrittenFiles, baseFile, compressor, customDataList, dynamicvariables, guiPrefs, includedJarURLs, info, installerResourceURLMap, langpackNameList, listener, packJarsSeparate, packsList, panelList, rules, SKELETON_SUBPATH, variables |
Constructor Summary | |
---|---|
MultiVolumePackager()
The constructor. |
|
MultiVolumePackager(java.lang.String compr_format)
Extended constructor. |
|
MultiVolumePackager(java.lang.String compr_format,
int compr_level)
Extended constructor. |
Method Summary | |
---|---|
void |
addConfigurationInformation(XMLElement data)
Adds configuration information to the packager. |
private void |
analyzeConfigurationInformation()
******************************************************************************************** Listener assistance ******************************************************************************************** |
private long |
copyStream(java.io.InputStream in,
java.io.OutputStream out)
Copies all the data from the specified input stream to the specified output stream. |
private void |
copyZip(java.util.zip.ZipInputStream zin,
java.util.zip.ZipOutputStream out,
java.util.List<java.lang.String> files)
Copies specified contents of one jar to another. |
private void |
copyZipWithoutExcludes(java.util.zip.ZipInputStream zin,
java.util.zip.ZipOutputStream out,
java.util.List<java.lang.String> excludes)
Copies specified contents of one jar to another without the specified files TODO: it would be useful to be able to keep signature information from signed jar files, can we combine manifests and still have their content signed? |
void |
createInstaller(java.io.File primaryFile)
Create the installer, beginning with the specified jar. |
private java.util.zip.ZipOutputStream |
getJarOutputStream(java.lang.String name)
Return a stream for the next jar. |
protected void |
writeIncludedJars()
Copy included jars to primary jar. |
protected void |
writeInstallerObject(java.lang.String entryName,
java.lang.Object object)
Write an arbitrary object to primary jar. |
protected void |
writeInstallerResources()
Write the data referenced by URL to primary jar. |
protected void |
writePacks()
|
private void |
writePacks(java.io.File primaryfile)
Write Packs to primary jar or each to a separate jar. |
protected void |
writeSkeletonInstaller()
Write skeleton installer to primary jar. |
Methods inherited from class com.izforge.izpack.compiler.PackagerBase |
---|
addCustomJar, addInstallerRequirements, addJarContent, addJarContent, addLangPack, addNativeLibrary, addNativeUninstallerLibrary, addPack, addPanelJar, addResource, getCompressor, getDynamicVariables, getPackagerListener, getPacksList, getRules, getVariables, initPackCompressor, sendMsg, sendMsg, sendStart, sendStop, setDynamicVariables, setGUIPrefs, setInfo, setPackagerListener, setRules, writeInstaller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INSTALLER_PAK_NAME
private java.util.zip.ZipOutputStream primaryJarStream
private XMLElement configdata
Constructor Detail |
---|
public MultiVolumePackager() throws CompilerException
CompilerException
public MultiVolumePackager(java.lang.String compr_format) throws CompilerException
compr_format
- Compression format to be used for packs compression format (if supported)
CompilerException
public MultiVolumePackager(java.lang.String compr_format, int compr_level) throws CompilerException
compr_format
- Compression format to be used for packscompr_level
- Compression level to be used with the chosen compression format (if
supported)
CompilerException
Method Detail |
---|
public void createInstaller(java.io.File primaryFile) throws java.lang.Exception
java.lang.Exception
private void analyzeConfigurationInformation()
protected void writeSkeletonInstaller() throws java.io.IOException
writeSkeletonInstaller
in class PackagerBase
java.io.IOException
protected void writeInstallerObject(java.lang.String entryName, java.lang.Object object) throws java.io.IOException
writeInstallerObject
in class PackagerBase
java.io.IOException
protected void writeInstallerResources() throws java.io.IOException
writeInstallerResources
in class PackagerBase
java.io.IOException
protected void writeIncludedJars() throws java.io.IOException
writeIncludedJars
in class PackagerBase
java.io.IOException
private void writePacks(java.io.File primaryfile) throws java.lang.Exception
java.lang.Exception
private java.util.zip.ZipOutputStream getJarOutputStream(java.lang.String name) throws java.io.IOException
java.io.IOException
private void copyZip(java.util.zip.ZipInputStream zin, java.util.zip.ZipOutputStream out, java.util.List<java.lang.String> files) throws java.io.IOException
java.io.IOException
copyStream(InputStream, OutputStream)
private void copyZipWithoutExcludes(java.util.zip.ZipInputStream zin, java.util.zip.ZipOutputStream out, java.util.List<java.lang.String> excludes) throws java.io.IOException
java.io.IOException
copyStream(InputStream, OutputStream)
private long copyStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- the input stream to readout
- the output stream to write
java.io.IOException
- if an I/O error occurspublic void addConfigurationInformation(XMLElement data)
IPackager
data
- - the xml-element packaging from the install.xmlprotected void writePacks() throws java.lang.Exception
writePacks
in class PackagerBase
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |