public class ImportFileSource extends java.lang.Object implements ImportSource
| Constructor and Description | 
|---|
| ImportFileSource(java.io.File file) | 
| ImportFileSource(java.io.File file,
                char fieldDelim,
                char stringDelim) | 
| ImportFileSource(java.lang.String fileName) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| protected ImportTextParser | createParser() | 
| protected java.io.File | getFile() | 
| java.lang.String | getName() | 
| java.util.ArrayList | getNext()Get next set of values. | 
| long | getRows()Return number of rows
  If first time requested then open file again and load each line
  We need to parse since readln does not handle new line in between
  string delimiter | 
| boolean | hasMore() | 
| void | rewind() | 
| void | setFieldDelimiter(char delim) | 
| void | setName(java.lang.String nm) | 
| void | setStringDelimiter(char delim) | 
public ImportFileSource(java.lang.String fileName)
fileName - public ImportFileSource(java.io.File file)
file - public ImportFileSource(java.io.File file,
                        char fieldDelim,
                        char stringDelim)
file - fieldDelim - stringDelim - public java.lang.String getName()
getName in interface ImportSourcepublic void setName(java.lang.String nm)
setName in interface ImportSourcenm - public void rewind()
            throws java.lang.Exception
rewind in interface ImportSourcejava.lang.Exception - a serious problempublic java.util.ArrayList getNext()
                            throws java.lang.Exception
ImportSourcegetNext in interface ImportSourcefieldArray - java.lang.Exception - a serious problempublic void close()
close in interface ImportSourcepublic void setFieldDelimiter(char delim)
delim - public void setStringDelimiter(char delim)
delim - public boolean hasMore()
hasMore in interface ImportSourcepublic long getRows()
             throws java.io.IOException
getRows in interface ImportSourcejava.io.IOExceptionprotected ImportTextParser createParser() throws java.io.IOException
java.io.IOExceptionprotected java.io.File getFile()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.