|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.compiler.Packager
com.izforge.izpack.compiler.StdPackager
Standard packager.
Field Summary | |
protected java.util.jar.JarOutputStream |
outJar
The zipped output stream. |
Fields inherited from class com.izforge.izpack.compiler.Packager |
langpacks, listener, packs, SKELETON_SUBPATH |
Constructor Summary | |
StdPackager(java.lang.String outputFilename,
PackagerListener plistener)
The constructor. |
Method Summary | |
void |
addJarContent(java.lang.String file)
Adds a jar file content to the installer. |
void |
addLangPack(java.lang.String iso3,
java.io.InputStream input)
Adds a language pack. |
void |
addNativeLibrary(java.lang.String name,
java.io.InputStream input)
Adds a native library. |
java.util.zip.ZipOutputStream |
addPack(int packNumber,
java.lang.String name,
java.util.List osConstraints,
boolean required,
java.lang.String description,
boolean preselected)
Adds a pack (the compiler sends the merged data). |
void |
addPanelClass(java.lang.String classFilename,
java.io.InputStream input)
Adds a panel. |
void |
addResource(java.lang.String resId,
java.io.InputStream input)
Adds a resource. |
void |
finish()
Tells the packager to finish the job (misc writings, cleanups, closings , ...). |
void |
setGUIPrefs(GUIPrefs prefs)
Sets the GUI preferences. |
void |
setInfo(Info info)
Sets the informations related to this installation. |
void |
setPanelsOrder(java.util.ArrayList order)
Sets the panels order. |
void |
setVariables(java.util.Properties varDef)
Adds Variable Declaration. |
Methods inherited from class com.izforge.izpack.compiler.Packager |
copyStream, packAdded, sendMsg, sendStart, sendStop, setPackagerListener, writeSkeletonInstaller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.jar.JarOutputStream outJar
Constructor Detail |
public StdPackager(java.lang.String outputFilename, PackagerListener plistener) throws java.lang.Exception
outputFilename
- The output filename.plistener
- The packager listener.
java.lang.Exception
- Description of the ExceptionMethod Detail |
public java.util.zip.ZipOutputStream addPack(int packNumber, java.lang.String name, java.util.List osConstraints, boolean required, java.lang.String description, boolean preselected) throws java.lang.Exception
addPack
in class Packager
packNumber
- The pack number.name
- The pack name.required
- Is the pack required ?osConstraints
- The target operation system(s) of this pack.description
- The pack description.
java.lang.Exception
- Description of the Exceptionpublic void setGUIPrefs(GUIPrefs prefs) throws java.lang.Exception
setGUIPrefs
in class Packager
prefs
- The new gUIPrefs value
java.lang.Exception
- Description of the Exceptionpublic void addPanelClass(java.lang.String classFilename, java.io.InputStream input) throws java.lang.Exception
addPanelClass
in class Packager
classFilename
- The class filename.input
- The stream to get the file data from.
java.lang.Exception
- Description of the Exceptionpublic void setPanelsOrder(java.util.ArrayList order) throws java.lang.Exception
setPanelsOrder
in class Packager
order
- The ordered list of the panels.
java.lang.Exception
- Description of the Exceptionpublic void setInfo(Info info) throws java.lang.Exception
setInfo
in class Packager
info
- The info section.
java.lang.Exception
- Description of the Exceptionpublic void setVariables(java.util.Properties varDef) throws java.lang.Exception
setVariables
in class Packager
varDef
- The variables definitions.
java.lang.Exception
- Description of the Exceptionpublic void addResource(java.lang.String resId, java.io.InputStream input) throws java.lang.Exception
addResource
in class Packager
resId
- The resource Id.input
- The stream to get the data from.
java.lang.Exception
- Description of the Exceptionpublic void addNativeLibrary(java.lang.String name, java.io.InputStream input) throws java.lang.Exception
addNativeLibrary
in class Packager
name
- The native library name.input
- The stream to get the data from.
java.lang.Exception
- Description of the Exceptionpublic void addLangPack(java.lang.String iso3, java.io.InputStream input) throws java.lang.Exception
addLangPack
in class Packager
iso3
- The ISO3 code.input
- The stream to get the data from.
java.lang.Exception
- Description of the Exceptionpublic void addJarContent(java.lang.String file) throws java.lang.Exception
addJarContent
in class Packager
file
- The jar filename.
java.lang.Exception
- Description of the Exceptionpublic void finish() throws java.lang.Exception
finish
in class Packager
java.lang.Exception
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |