|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.customstep.velocity.FileTool
com.taleo.integration.client.customstep.velocity.CsvExportFileTool
public class CsvExportFileTool
Class to expose a CSV export results file properties and content into Velocity templates.
Constructor Summary | |
---|---|
CsvExportFileTool(java.io.File file,
boolean headerPresent,
char csvDelimiter,
char csvQuoteCharacter,
java.lang.String encoding)
Constructor with the export file, CSV header indicator, CSV delimiter, quotation character and encoding. |
|
CsvExportFileTool(java.io.File file,
boolean headerPresent,
char csvDelimiter,
char csvQuoteCharacter,
java.lang.String encoding,
java.io.File targetFile)
Constructor with the export file, CSV header indicator, CSV delimiter, quotation character, encoding and the target file. |
Method Summary | |
---|---|
java.lang.String |
content()
Return the file content. |
java.util.Date |
lastModified()
Return the file last modified date. |
int |
lineCount()
Return the line count including the header row if present. |
java.lang.String |
name()
Return the file name including the extension. |
java.lang.String |
path()
Return the file absolute path. |
int |
recordCount()
Return the record count excluding the header row if present. |
long |
size()
Return the file size. |
Methods inherited from class com.taleo.integration.client.customstep.velocity.FileTool |
---|
content, content, lastModified, lineCount, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvExportFileTool(java.io.File file, boolean headerPresent, char csvDelimiter, char csvQuoteCharacter, java.lang.String encoding)
file
- The export file.encoding
- The encoding.public CsvExportFileTool(java.io.File file, boolean headerPresent, char csvDelimiter, char csvQuoteCharacter, java.lang.String encoding, java.io.File targetFile)
If specified, the targetFile is used to provide the file name and path in place of the file itself which is used for the contents. This is useful when the tool is used in the process of writing the target file and the name/path must be written within.
file
- The export file.headerPresent
- Indicates if the CSV header is present in the file.csvDelimiter
- CSV delimiter.csvQuoteCharacter
- CSV quote character.encoding
- The encoding.targetFile
- The target file.Method Detail |
---|
public java.lang.String name()
public java.lang.String path()
public java.util.Date lastModified()
public long size()
public java.lang.String content() throws java.io.IOException
java.io.IOException
public int lineCount() throws java.io.IOException
java.io.IOException
public int recordCount() throws java.io.IOException
java.io.IOException
InvalidCSVFileFormat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |