public class DBOUnlReader
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
DBOUnlReader(DBObject master,
java.io.BufferedReader reader) |
DBOUnlReader(DBObject master,
java.io.File file) |
DBOUnlReader(DBObject master,
java.lang.String fname) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the input file or stream
|
int |
getErrorCount()
Returns the number of parsing errors that have occurred
|
char |
getFieldSeparator()
Returns the field separator character.
|
java.lang.String |
getLastInputLine()
Returns the last processed UNL input line.
|
int |
getLineCount()
Returns the current line count
|
int |
getRecordCount()
Returns the number of DBObjects that have been created successfully
|
java.io.File |
getViolationFile() |
boolean |
hasNext()
Reads the next input line and converts it into an DBObject
|
DBObject |
next()
Returns the last read DBObject read from the input
|
void |
setFieldSeparator(char sep)
Sets the field separator character which is used for tokenizing the input line
|
void |
setViloationFile(java.io.File vioFile)
Sets the violation output file.
|
void |
setViloationFile(java.lang.String vioFileName)
Sets the violation output file.
|
public DBOUnlReader(DBObject master, java.lang.String fname) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic DBOUnlReader(DBObject master, java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic DBOUnlReader(DBObject master, java.io.BufferedReader reader)
public void setFieldSeparator(char sep)
public char getFieldSeparator()
public java.lang.String getLastInputLine()
public boolean hasNext()
throws java.lang.Exception
java.lang.Exception - if an SQL error occurredpublic DBObject next()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int getLineCount()
public int getRecordCount()
public int getErrorCount()
public void setViloationFile(java.lang.String vioFileName)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setViloationFile(java.io.File vioFile)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic java.io.File getViolationFile()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.