org.dbunit.dataset.sqlloader
Class SqlLoaderControlParserImpl

java.lang.Object
  extended by org.dbunit.dataset.sqlloader.SqlLoaderControlParserImpl
All Implemented Interfaces:
SqlLoaderControlParser

public class SqlLoaderControlParserImpl
extends Object
implements SqlLoaderControlParser

Parser which parses Oracle SQLLoader files.

Since:
2.4.0
Version:
$Revision: 819 $ $Date: 2008-09-29 23:10:49 +0200 (Mon, 29 Sep 2008) $
Author:
Stephan Strittmatter (stritti AT users.sourceforge.net), Last changed by: $Author: gommma $

Field Summary
static char SEPARATOR_CHAR
           
 
Constructor Summary
SqlLoaderControlParserImpl()
          The Constructor.
 
Method Summary
 String getTableName()
           
 List parse(File controlFile)
          Parse.
 List parse(String csv)
          Parse.
 List parse(URL url)
          Parse.
protected  String parseForRegexp(String controlFileContent, String regexp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR_CHAR

public static final char SEPARATOR_CHAR
See Also:
Constant Field Values
Constructor Detail

SqlLoaderControlParserImpl

public SqlLoaderControlParserImpl()
The Constructor.

Method Detail

parse

public List parse(String csv)
           throws PipelineException,
                  IllegalInputCharacterException
Parse.

Specified by:
parse in interface SqlLoaderControlParser
Parameters:
csv - the csv
Returns:
the list
Throws:
IllegalInputCharacterException - the illegal input character exception
PipelineException - the pipeline exception
See Also:
SqlLoaderControlParser.parse(java.lang.String)

parse

public List parse(URL url)
           throws IOException,
                  SqlLoaderControlParserException
Parse.

Specified by:
parse in interface SqlLoaderControlParser
Parameters:
url - the URL
Returns:
the list
Throws:
IOException - the IO exception
SqlLoaderControlParserException - the oracle control parser exception
See Also:
SqlLoaderControlParser.parse(java.net.URL)

parse

public List parse(File controlFile)
           throws IOException,
                  SqlLoaderControlParserException
Parse.

Specified by:
parse in interface SqlLoaderControlParser
Parameters:
controlFile - the source
Returns:
the list of column names as Strings
Throws:
IOException - the IO exception
SqlLoaderControlParserException - the oracle control parser exception
See Also:
SqlLoaderControlParser.parse(java.io.File)

parseForRegexp

protected String parseForRegexp(String controlFileContent,
                                String regexp)
                         throws IOException
Throws:
IOException

getTableName

public String getTableName()
Specified by:
getTableName in interface SqlLoaderControlParser


Copyright © 2002-2012. All Rights Reserved.