The first program write a file and why the second to answer. The second read the file and answer in a file. The first read the file and return the content.
Definition at line 48 of file ReadWriteFileTransfertManager.java.
Public Member Functions | |
ReadWriteFileTransfertManager (String directory) | |
Define the directory where the files are writen. | |
byte[] | sendReadWriteCommand (byte[] command, String inFileName, String outFileName, String waitfile) throws IOException |
Write the command in the inFileName and write for the outFileName. | |
Classes | |
class | ReadWriteWaiter |
byte [] org.openmobileis.common.util.file.ReadWriteFileTransfertManager.sendReadWriteCommand | ( | byte[] | command, | |
String | inFileName, | |||
String | outFileName, | |||
String | waitfile | |||
) | throws IOException |
Write the command in the inFileName and write for the outFileName.
Return the content of outFileName. If the timeout is define, throw IOException if the wait is greater than the timeout
command | ||
inFileName | ||
outFileName | ||
waitfile | if waitfile is not null, this file is use to wait for. Otherwise it's the out file. |
Definition at line 108 of file ReadWriteFileTransfertManager.java.