|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinstall.Util
public class Util
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
Util(String target)
Supported API: true |
|
| Method Summary | |
|---|---|
static void |
CopyFile(InputStream in,
OutputStream out)
Copy the file from in file to the out file. |
void |
copyJar(String name)
Restores a jar file from chunks named name#_jar. |
static String |
getBootJarLocation()
Returns boot.jar location. |
static String |
getCacheDirectory(String codebase,
String cacheLocation)
Returns cache directory. |
static Locale |
getLocale(Applet applet)
|
static String |
getLocalizedMessage(ResourceBundle resourceBundle,
String messageKey,
Object[] textInserts)
Gets the localized message, for passed arguments. |
static String |
getLocalizedMessage(ResourceBundle resourceBundle,
String messageKey,
Object[] textInserts,
Applet applet)
Gets the localized message, for passed arguments. |
static void |
main(String[] args)
Supported API: false |
protected static void |
preProcessArgs(Object[] textInserts,
Locale locale)
|
void |
restoreJar(String name)
Restores a jar file from chunks named name#.jar. |
static void |
splitJar(String name,
int maxsize)
Splits a jar file into chunks named name#.jar. |
void |
unJarCopiedFiles(InputStream in)
Unjars the files from the given inputStream. |
void |
unJarFiles(InputStream in)
Unjars the files from the given inputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util(String target)
| Method Detail |
|---|
public static Locale getLocale(Applet applet)
public static void CopyFile(InputStream in,
OutputStream out)
throws IOException
in - InputStream of the file to copy from.out - OutputStream of the file to copy to.
IOException - Thrown if an error occurs during the reading or writing of the files.
public void unJarFiles(InputStream in)
throws ZipException,
IOException
in - InputStream of the jar file to unjar.
ZipException
IOException
public void unJarCopiedFiles(InputStream in)
throws ZipException,
IOException
in - InputStream of the jar file to unjar.
ZipException
IOException
public static String getLocalizedMessage(ResourceBundle resourceBundle,
String messageKey,
Object[] textInserts)
Supported API: true
rb - the resource bundle subclass containing the localizable message.key - the key associated with the localizable messageparams - an optional set of objects to be formatted into the localizable message text.ResourceBundle,
MessageFormat
public static String getLocalizedMessage(ResourceBundle resourceBundle,
String messageKey,
Object[] textInserts,
Applet applet)
Supported API: true
rb - the resource bundle subclass containing the localizable message.key - the key associated with the localizable messageparams - an optional set of objects to be formatted into the localizable message text.ResourceBundle,
MessageFormat
public static void splitJar(String name,
int maxsize)
Supported API: true
name - the name of the jar file (with no extension).maxsize - the maximum size of a 'chunk'
public void restoreJar(String name)
throws ZipException,
IOException
Supported API: true
name - the name of the jar file (with no extension).
ZipException
IOException
public void copyJar(String name)
throws ZipException,
IOException
Supported API: true
name - the name of the jar file (with no extension).
ZipException
IOException
protected static void preProcessArgs(Object[] textInserts,
Locale locale)
public static void main(String[] args)
public static String getBootJarLocation()
throws IOException
IOException
public static String getCacheDirectory(String codebase,
String cacheLocation)
codebase - codebase URLcacheLocation - cache directory specified for bootstrap loader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||