|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.system.Download
public class Download
Manages the download of new Java software to a JControl module.
The downloader is automatically invoked by the virtual machine if no application is
found in the current memory bank.
You can also invoke the downloader from an application using the run method.
| all |
| Field Summary | |
|---|---|
boolean |
error
Error flag, set to true if the download-process terminated abnormal. |
| Constructor Summary | |
|---|---|
Download()
Constructs a new Downloader. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Program entry point, will be started if no application is loaded into the Device. |
void |
run()
Main Download code sequence. |
int |
xReceive(byte[] data)
XModem receive sequence. |
void |
xTransmit(byte[] data)
XModem transmit sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, notifyAll, wait |
| Field Detail |
|---|
public boolean error
true if the download-process terminated abnormal.
| Constructor Detail |
|---|
public Download()
throws IOException
IOException| Method Detail |
|---|
public static void main(String[] args)
throws IOException
args -
IOExceptionpublic void run()
Thread. In both
cases invocation is only possible once (you have to create a new instance for a
new call). If code is written to flash memory this method never returns (a virtual
machine restart is performed).
run in interface RunnableRunnable.run()
public int xReceive(byte[] data)
throws IOException
data - array to fill with received data (size: a multiple of 128)
IOException - if the reception failed
public void xTransmit(byte[] data)
throws IOException
data - to transmit (size: a multiple of 128)
IOException - if the transmission failed
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||