org.openmobileis.common.util.file.ReadWriteFileTransfertManager Class Reference

List of all members.


Detailed Description

Title: OpenMobileIS project source
Description: Use to transfert command using file between two programs.

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.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

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

Member Function Documentation

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

Parameters:
command 
inFileName 
outFileName 
waitfile if waitfile is not null, this file is use to wait for. Otherwise it's the out file.
Returns:

Definition at line 108 of file ReadWriteFileTransfertManager.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:20 2010 for OpenMobileIS by  doxygen 1.5.4