com.taleo.integration.client.customstep.util.csv
Class CsvPropertiesSectionReader

java.lang.Object
  extended by com.taleo.integration.client.customstep.util.csv.CsvPropertiesSectionReader

public class CsvPropertiesSectionReader
extends java.lang.Object

CsvPropertiesSectionReader reads the Taleo legacy properties section.


Constructor Summary
CsvPropertiesSectionReader(java.io.Reader pReader)
          Constructs a CsvPropertiesSectionReader If the Reader may contain a CSV content WITHOUT #BEGINPROPERTIES/#ENDPROPERTIES section, you MUST provide a PeekReader, using a prefetch buffer of at least the size required to parse whether #BEGINPROPERTIES is present in the file.
 
Method Summary
 java.util.Properties readProperties()
          Read the properties section and put values in a Properties object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvPropertiesSectionReader

public CsvPropertiesSectionReader(java.io.Reader pReader)
Constructs a CsvPropertiesSectionReader If the Reader may contain a CSV content WITHOUT #BEGINPROPERTIES/#ENDPROPERTIES section, you MUST provide a PeekReader, using a prefetch buffer of at least the size required to parse whether #BEGINPROPERTIES is present in the file. Using any other Reader or using a PeekReader using an insufficient size to check the presence or not of the #BEGINPROPERTIES section will assume that these section IS ALWAYS present in the file and will try parsing it.

Parameters:
pReader - the reader to parse for CSV properties
Method Detail

readProperties

public java.util.Properties readProperties()
                                    throws InvalidCSVFileFormat
Read the properties section and put values in a Properties object.

Returns:
a Properties object if the section is present, otherwise null
Throws:
InvalidCSVFileFormat