|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object update.JAPUpdateWizard.JapDownloadManager
final class JAPUpdateWizard.JapDownloadManager
This class manages the download process of a new Jap version jar file.
Field Summary | |
---|---|
private int |
downloadResult
Stores the download result (0 if it was successful, -1 if there was an error). |
private java.lang.String |
fileName
Stores the path, filename and the query String of the new jar file at the remote system. |
private byte[] |
newJarBuff
Stores the new jar file. |
private ListenerInterface |
targetInterface
Stores the ListenerInterface of the system, where the new jar file is located. |
Constructor Summary | |
---|---|
JAPUpdateWizard.JapDownloadManager(java.net.URL jarUrl)
Constructs a new JapDownloadManager. |
Method Summary | |
---|---|
int |
getDownloadResult()
Returns the error code of the download (0 - download successful, -1 - download aborted). |
byte[] |
getNewJar()
Returns the new jar file as byte array. |
void |
run()
This method is executed by the internal Thread. |
void |
startDownload()
This method starts the download of the new jar file by creating the internal thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ListenerInterface targetInterface
private java.lang.String fileName
private int downloadResult
private byte[] newJarBuff
Constructor Detail |
---|
public JAPUpdateWizard.JapDownloadManager(java.net.URL jarUrl) throws java.lang.Exception
jarUrl
- The URL of the wanted jar file.
java.lang.Exception
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void startDownload()
public int getDownloadResult()
public byte[] getNewJar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |