Package org.dbunit.dataset.sqlloader
Class SqlLoaderControlParserImpl
java.lang.Object
org.dbunit.dataset.sqlloader.SqlLoaderControlParserImpl
- All Implemented Interfaces:
SqlLoaderControlParser
Parser which parses Oracle SQLLoader files.
- Since:
- 2.4.0
- Version:
- $Revision$ $Date$
- Author:
- Stephan Strittmatter (stritti AT users.sourceforge.net), Last changed by: $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charThe character that separates fields in the SQLLoader control file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the table parsed from the control file.Parse.Parse.Parse.protected StringparseForRegexp(String controlFileContent, String regexp) Returns the first capture group of the given regexp matched against the given content.
-
Field Details
-
SEPARATOR_CHAR
public static final char SEPARATOR_CHARThe character that separates fields in the SQLLoader control file.- See Also:
-
-
Constructor Details
-
SqlLoaderControlParserImpl
public SqlLoaderControlParserImpl()The Constructor.
-
-
Method Details
-
parse
Parse.- Specified by:
parsein interfaceSqlLoaderControlParser- Parameters:
csv- the csv- Returns:
- the list
- Throws:
IllegalInputCharacterException- the illegal input character exceptionPipelineException- the pipeline exception- See Also:
-
parse
Parse.- Specified by:
parsein interfaceSqlLoaderControlParser- Parameters:
url- the URL- Returns:
- the list
- Throws:
IOException- the IO exceptionSqlLoaderControlParserException- the oracle control parser exception- See Also:
-
parse
Parse.- Specified by:
parsein interfaceSqlLoaderControlParser- Parameters:
controlFile- the source- Returns:
- the list of column names as Strings
- Throws:
IOException- the IO exceptionSqlLoaderControlParserException- the oracle control parser exception- See Also:
-
parseForRegexp
Returns the first capture group of the given regexp matched against the given content.- Parameters:
controlFileContent- the content to search.regexp- the regular expression to match, with a single capture group.- Returns:
- the matched capture group, or
nullif the regexp does not match. - Throws:
IOException- never thrown by this implementation.
-
getTableName
Description copied from interface:SqlLoaderControlParserReturns the name of the table parsed from the control file.- Specified by:
getTableNamein interfaceSqlLoaderControlParser- Returns:
- the name of the table parsed from the control file.
-