lejos.pc.tools
Class Upload
java.lang.Object
lejos.pc.comm.NXTCommLoggable
lejos.pc.tools.Upload
public class Upload
- extends NXTCommLoggable
Utility class used by the nxj and nxjupload command line tools.
It checks the file, connects to the NXT, uploads the file, optionally runs it,
and disconnects. This class is also used by the Eclipse plugin.
- Author:
- Lawrie Griffiths
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Upload
public Upload()
upload
public void upload(java.lang.String name,
java.lang.String address,
int protocols,
java.io.File f,
java.lang.String nxtFileName,
boolean run)
throws NXTNotFoundException,
java.io.IOException
- Throws:
NXTNotFoundException
java.io.IOException
addLogListener
public void addLogListener(ToolsLogListener listener)
- register log listener
- Parameters:
listener
-
removeLogListener
public void removeLogListener(ToolsLogListener listener)
- unregister log listener
- Parameters:
listener
-