Class TextFileInputReader
- java.lang.Object
-
- org.pentaho.di.trans.steps.fileinput.text.TextFileInputReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IBaseFileInputReader
public class TextFileInputReader extends Object implements IBaseFileInputReader
Reader for one text file.- Author:
- Alexander Buloichik
-
-
Field Summary
Fields Modifier and Type Field Description protected long
lineInFile
protected long
lineNumberInFile
-
Constructor Summary
Constructors Constructor Description TextFileInputReader(IBaseFileInputStepControl step, TextFileInputMeta meta, TextFileInputData data, org.apache.commons.vfs2.FileObject file, org.pentaho.di.core.logging.LogChannelInterface log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
readInitial()
boolean
readRow()
protected boolean
tryToReadLine(boolean applyFilter)
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-