gov.nih.nci.caarray.services.fileparse2.parsers
Class DelimitedFileReader
java.lang.Object
gov.nih.nci.caarray.services.fileparse2.parsers.DelimitedFileReader
public final class DelimitedFileReader
- extends java.lang.Object
- Author:
- tranp
Constructor Summary |
DelimitedFileReader(java.io.BufferedReader bufferedReader,
org.apache.commons.beanutils.BasicDynaClass rowDynaClass,
java.lang.String columnDelimiter)
|
DelimitedFileReader(java.io.BufferedReader bufferedReader,
java.lang.String columnDelimiter)
|
DelimitedFileReader(java.io.BufferedReader bufferedReader,
java.lang.String[] readColumnNames,
java.lang.String columnDelimiter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelimitedFileReader
public DelimitedFileReader(java.io.BufferedReader bufferedReader,
java.lang.String[] readColumnNames,
java.lang.String columnDelimiter)
throws java.io.IOException
- Throws:
java.io.IOException
DelimitedFileReader
public DelimitedFileReader(java.io.BufferedReader bufferedReader,
org.apache.commons.beanutils.BasicDynaClass rowDynaClass,
java.lang.String columnDelimiter)
throws java.io.IOException
- Parameters:
bufferedReader
- rowBeanClass
- - Used to obtain column names and the type for rows
being read. Note that the order of the properties set in this BasicDynaClass
is the order the columns will be read. Common-beanutils would ensure
the order of properties using LinkedHashMap as specified when the DynaBeanClass
was constructed.columnDelimiter
-
- Throws:
java.io.IOException
DelimitedFileReader
public DelimitedFileReader(java.io.BufferedReader bufferedReader,
java.lang.String columnDelimiter)
throws java.io.IOException
- Throws:
java.io.IOException
nextRow
public org.apache.commons.beanutils.DynaBean nextRow()
throws java.io.EOFException,
java.io.IOException
- Returns:
-
- Throws:
java.io.EOFException
- - Thrown when the end of file is reached to distinguish
from a null returned for an empty line.
java.io.IOException
getAllColumnNames
public java.lang.String[] getAllColumnNames()