com.taleo.integration.client.customstep.velocity
Class XmlExportFileTool

java.lang.Object
  extended by com.taleo.integration.client.customstep.velocity.FileTool
      extended by com.taleo.integration.client.customstep.velocity.XmlExportFileTool

public class XmlExportFileTool
extends FileTool

Class to expose an XML export results file properties and content into Velocity templates.

Author:
Romain Guay - Taleo Corporation

Constructor Summary
XmlExportFileTool(java.io.File file)
          Constructor with the export 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.
 java.lang.String path()
          Return the file absolute path.
 int recordCount()
          Return the record count.
 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

XmlExportFileTool

public XmlExportFileTool(java.io.File file)
Constructor with the export file.

Parameters:
file - The export file.
Method Detail

name

public java.lang.String name()
Return the file name. This is the last name in the path sequence, including the extension.

Returns:
The file name.

path

public java.lang.String path()
Return the file absolute path.

Returns:
The file path.

lastModified

public java.util.Date lastModified()
Return the file last modified date.

Returns:
The file last modified date.

size

public long size()
Return the file size.

Returns:
The file size in bytes.

content

public java.lang.String content()
                         throws java.io.IOException
Return the file content.

Returns:
The file content.
Throws:
java.io.IOException

lineCount

public int lineCount()
              throws java.io.IOException
Return the line count including the header row if present.

Returns:
The line count.
Throws:
java.io.IOException

recordCount

public int recordCount()
                throws java.io.IOException
Return the record count.

Returns:
The record count.
Throws:
java.io.IOException