Class TextFileInputReader
java.lang.Object
org.pentaho.di.trans.steps.fileinput.text.TextFileInputReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IBaseFileInputReader
Reader for one text file.
- Author:
- Alexander Buloichik
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected long
protected long
-
Constructor Summary
ConstructorDescriptionTextFileInputReader
(IBaseFileInputStepControl step, TextFileInputMeta meta, TextFileInputData data, org.apache.commons.vfs2.FileObject file, org.pentaho.di.core.logging.LogChannelInterface log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
boolean
readRow()
protected boolean
tryToReadLine
(boolean applyFilter)
-
Field Details
-
lineInFile
protected long lineInFile -
lineNumberInFile
protected long lineNumberInFile -
linesWritten
protected long linesWritten
-
-
Constructor Details
-
TextFileInputReader
public TextFileInputReader(IBaseFileInputStepControl step, TextFileInputMeta meta, TextFileInputData data, org.apache.commons.vfs2.FileObject file, org.pentaho.di.core.logging.LogChannelInterface log) throws Exception - Throws:
Exception
-
-
Method Details
-
readInitial
- Throws:
Exception
-
readRow
public boolean readRow() throws org.pentaho.di.core.exception.KettleException- Specified by:
readRow
in interfaceIBaseFileInputReader
- Throws:
org.pentaho.di.core.exception.KettleException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
tryToReadLine
protected boolean tryToReadLine(boolean applyFilter) throws org.pentaho.di.core.exception.KettleFileException - Throws:
org.pentaho.di.core.exception.KettleFileException
-