public class NCIThesaurusHistoryFileToSQL
extends java.lang.Object
Constructor and Description |
---|
NCIThesaurusHistoryFileToSQL(java.lang.String uri,
java.net.URI filePath,
java.net.URI versionsFilePath,
java.lang.String token,
boolean failOnAllErrors,
LgMessageDirectorIF messageDirector)
NCI Thesaurus History File to SQL Converter.
|
Modifier and Type | Method and Description |
---|---|
static void |
validateFile(java.net.URI filePath,
java.net.URI versionsFilePath,
java.lang.String token,
boolean entireFile)
Reads all or part of the file, makes sure that the content is the
expected format.
|
public NCIThesaurusHistoryFileToSQL(java.lang.String uri, java.net.URI filePath, java.net.URI versionsFilePath, java.lang.String token, boolean failOnAllErrors, LgMessageDirectorIF messageDirector) throws java.lang.Exception
filePath
- location of the delimited file (local file or URL)token
- parsing token, if null default is "|"sqlServer
- location of the SQLLite serversqlDriver
- driver classsqlUsername
- username for server authentificationsqlPassword
- password for server authenificationmessageDirector
- log message outputjava.lang.Exception
public static void validateFile(java.net.URI filePath, java.net.URI versionsFilePath, java.lang.String token, boolean entireFile) throws java.net.MalformedURLException, java.io.IOException, java.text.ParseException
filePath
- fiel to read.token
- delimiter (defaults to '|')entireFile
- - read the entire file, or just the first 10 lines?java.net.MalformedURLException
java.io.IOException
java.text.ParseException