|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticommand.platform.nxt.FileSystem
public class FileSystem
Method Summary | |
---|---|
static byte |
delete(java.lang.String fileName)
Delete a file from the NXT. |
static byte[] |
download(java.lang.String fileName)
|
static byte |
download(java.lang.String fileName,
java.io.File destination)
Download a file from the NXT and save it to a file. |
static byte |
download(java.lang.String fileName,
java.lang.String destination)
Download a file from the NXT and save it to a local directory. |
static java.lang.String |
getCurrentProgramName()
Retrieves the file name of the Lego executable currently running on the NXT. |
static java.lang.String[] |
getFileNames()
Returns a list of all files on NXT brick. |
static java.lang.String[] |
getFileNames(java.lang.String searchCriteria)
Returns a list of files on NXT brick. |
static byte |
startProgram(java.lang.String fileName)
Starts a Lego executable file on the NXT. |
static byte |
stopProgram()
Stops the currently running Lego executable on the NXT. |
static byte |
upload(java.io.File localSource)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte upload(java.io.File localSource)
public static byte[] download(java.lang.String fileName)
fileName
- The name of the file on the NXT, including filename extension.
public static byte download(java.lang.String fileName, java.io.File destination)
fileName
- destination
- Where the file will be saved. Can be directory or
full path and filename.
public static byte download(java.lang.String fileName, java.lang.String destination)
fileName
- destination
- Where the file will be saved. Can be directory or
full path and filename. e.g. "c:/Documents/Lego Sounds/Sir.rso"
public static byte delete(java.lang.String fileName)
fileName
-
public static java.lang.String[] getFileNames()
public static java.lang.String[] getFileNames(java.lang.String searchCriteria)
searchCriteria
- "*.*" or [FileName].* or or *.[Extension] or [FileName].[Extension]
public static java.lang.String getCurrentProgramName()
public static byte startProgram(java.lang.String fileName)
fileName
-
public static byte stopProgram()
fileName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |