public class FileInterfaceWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERRORCODE_EVERYTHING_OK
returned by reason() if everything was OK
|
static int |
ERRORCODE_FILE_ALREADY_EXISTS
returned by reason() if the file was already existing on calling execute().
|
static int |
ERRORCODE_IOEXCEPTION
returned by reason() if
|
static int |
ERRORCODE_TIMEOUT_EXPIERD
returned by reason() if the timeout between writing and reading by the Server-Interface is expired.
|
| Constructor and Description |
|---|
FileInterfaceWriter(File dst)
Creates a New Instance of FileInterfaceWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(String classPath,
String[][] args)
Adds a Command that is needed to execute over FileInterface.
|
int |
errorReason()
Returns the reason of returning false in calling execute() the last time.
|
boolean |
execute()
Writes the fileinterface file.
|
public static int ERRORCODE_TIMEOUT_EXPIERD
public static int ERRORCODE_FILE_ALREADY_EXISTS
public static int ERRORCODE_IOEXCEPTION
public static int ERRORCODE_EVERYTHING_OK
public FileInterfaceWriter(File dst)
dst - Where to white the File. It's the same Path as
specified in the main-config of simpleflex.public void addCommand(String classPath, String[][] args)
classPath - The classpath to the needed fileinterfaceargs - The arguments thatpublic boolean execute()
public int errorReason()
Copyright © 2020 Software Atelier Kamber. All rights reserved.