public class ExportData
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
cvMessage
A reference to the server resource properties.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
ExportData(java.lang.String[] args)
Constructs an
ExportData object and communicates with the
Flash server to export data records. |
Modifier and Type | Method and Description |
---|---|
protected static java.io.PrintWriter |
createLogFile(java.lang.String path)
Creates or appends to the give log file.
|
static void |
main(java.lang.String[] args)
Method called to receive command line parameters and communicate with the
Flash server to export data records.
|
protected static void |
sendFileContents(java.io.PrintWriter pw,
java.io.File file)
Writes the file contents to the given
PrintWriter |
private static final long serialVersionUID
protected static MessageBundle cvMessage
public ExportData(java.lang.String[] args)
ExportData
object and communicates with the
Flash server to export data records.args
- (String[]) The array of command line arguments. This must
be specified as follows:
args[0] - the file to send to the e-commerce system.
args[1] - the error log file.public static void main(java.lang.String[] args)
args
- (String[]) The array of command line arguments. This must
be specified as follows:
args[0] - the file to send to the e-commerce system.
args[1] - the error log file.protected static void sendFileContents(java.io.PrintWriter pw, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
PrintWriter
pw
- (PrintWriter) Writer to send contents to.file
- (File) The file to read from.java.io.IOException
- - if an error occurs while processing the
file.java.io.FileNotFoundException
- - if the file cannot be opened.protected static java.io.PrintWriter createLogFile(java.lang.String path)
path
- (String) Path to the file.