|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.columntranslator.FileToStringColumnTranslator
The FileToStringColumnTranslator translates an InputStream into a filename by writing the contents of the InputStream into a file. The format of the filename will be '[prefix][number][suffix]' where 'prefix' and 'suffix' can be specified by the user and 'number' is a sequence number.
Field Summary | |
protected java.lang.String |
baseDir
The directory that the file wile reside in. |
protected int |
count
The sequence number. |
protected java.lang.String |
filenamePrefix
The filename prefix (default 'file'). |
protected java.lang.String |
filenameSuffix
The filename suffix. |
protected static org.apache.commons.logging.Log |
LOG
The log for error information. |
Constructor Summary | |
FileToStringColumnTranslator()
|
Method Summary | |
ColumnValue |
getValue(ColumnDef column,
ColumnValue columnValue)
Returns the translated column value. |
void |
setBaseDir(java.lang.String newBaseDir)
Sets the base directory that the files will reside in. |
void |
setFilenamePrefix(java.lang.String newFilenamePrefix)
Sets the filename prefix for all files created. |
void |
setFilenameSuffix(java.lang.String newFilenameSuffix)
Sets the filename suffix for all files created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log LOG
protected java.lang.String baseDir
protected java.lang.String filenamePrefix
protected java.lang.String filenameSuffix
protected int count
Constructor Detail |
public FileToStringColumnTranslator()
Method Detail |
public void setBaseDir(java.lang.String newBaseDir)
newBaseDir
- the directorypublic void setFilenamePrefix(java.lang.String newFilenamePrefix)
newFilenamePrefix
- the prefixpublic void setFilenameSuffix(java.lang.String newFilenameSuffix)
newFilenameSuffix
- the suffixpublic ColumnValue getValue(ColumnDef column, ColumnValue columnValue)
ColumnTranslator
getValue
in interface ColumnTranslator
column
- the definition of the columncolumnValue
- the value of the column read from a file
ColumnTranslator.getValue(net.sourceforge.jdbcimporter.ColumnDef, net.sourceforge.jdbcimporter.ColumnValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |