public class ImportFileReader
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private FlashServletContext |
ivContext
The current context for the servlet or thread using this class.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
ImportFileReader(FlashServletContext ctx)
Constructs a new instance of the import file reader class with the given
servlet or thread context.
|
| Modifier and Type | Method and Description |
|---|---|
FlashServletContext |
getContext()
Returns the current context for the servlet or thread using this class.
|
boolean |
processInput(java.lang.String filePath)
Processes an import data input file.
|
protected int |
processInputTXT(ImportProcessor pr,
java.io.File file)
Processes an import data delimited text input file line by line.
|
protected int |
processInputXLS(ImportProcessor pr,
java.io.File file)
Processes an import data Excel spreadsheet input file row by row.
|
private static final long serialVersionUID
private FlashServletContext ivContext
public ImportFileReader(FlashServletContext ctx)
ctx - (FlashServletContext) The current servlet or thread context.public FlashServletContext getContext()
public boolean processInput(java.lang.String filePath)
filePath - (String) The fully qualified path to the import file.true if the import processing ended normally
(i.e. with no unexpected system errors), otherwise false.protected int processInputTXT(ImportProcessor pr, java.io.File file) throws java.lang.Exception
file - (File) The import file.java.lang.Exception - - if an error occurs during processing.protected int processInputXLS(ImportProcessor pr, java.io.File file) throws java.lang.Exception
file - (File) The import file.java.lang.Exception - - if an error occurs during processing.