Class TextFileInput

  • All Implemented Interfaces:
    org.pentaho.di.core.ExtensionDataInterface, HasLogChannelInterface, org.pentaho.di.core.logging.LoggingObjectInterface, org.pentaho.di.core.logging.LoggingObjectLifecycleInterface, org.pentaho.di.core.variables.VariableSpace, StepInterface

    @Deprecated
    public class TextFileInput
    extends BaseStep
    implements StepInterface
    Deprecated.
    replaced by implementation in the ...steps.fileinput.text package
    Read all sorts of text files, convert them to rows and writes these to one or more output streams.
    Since:
    4-apr-2003
    Author:
    Matt
    • Method Detail

      • getLine

        public static final String getLine​(org.pentaho.di.core.logging.LogChannelInterface log,
                                           InputStreamReader reader,
                                           int formatNr,
                                           StringBuilder line)
                                    throws org.pentaho.di.core.exception.KettleFileException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleFileException
      • getLine

        public static final String getLine​(org.pentaho.di.core.logging.LogChannelInterface log,
                                           InputStreamReader reader,
                                           EncodingType encodingType,
                                           int formatNr,
                                           StringBuilder line)
                                    throws org.pentaho.di.core.exception.KettleFileException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleFileException
      • guessStringsFromLine

        @Deprecated
        public static final String[] guessStringsFromLine​(org.pentaho.di.core.logging.LogChannelInterface log,
                                                          String line,
                                                          TextFileInputMeta inf,
                                                          String delimiter)
                                                   throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • guessStringsFromLine

        public static final String[] guessStringsFromLine​(org.pentaho.di.core.variables.VariableSpace space,
                                                          org.pentaho.di.core.logging.LogChannelInterface log,
                                                          String line,
                                                          TextFileInputMeta inf,
                                                          String delimiter,
                                                          String enclosure,
                                                          String escapeCharacter)
                                                   throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • convertLineToStrings

        public static final String[] convertLineToStrings​(org.pentaho.di.core.logging.LogChannelInterface log,
                                                          String line,
                                                          InputFileMetaInterface inf,
                                                          String delimiter,
                                                          String enclosure,
                                                          String escapeCharacters)
                                                   throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • convertLineToRow

        public static Object[] convertLineToRow​(org.pentaho.di.core.logging.LogChannelInterface log,
                                                TextFileLine textFileLine,
                                                InputFileMetaInterface info,
                                                Object[] passThruFields,
                                                int nrPassThruFields,
                                                org.pentaho.di.core.row.RowMetaInterface outputRowMeta,
                                                org.pentaho.di.core.row.RowMetaInterface convertRowMeta,
                                                String fname,
                                                long rowNr,
                                                String delimiter,
                                                String enclosure,
                                                String escapeCharacter,
                                                FileErrorHandler errorHandler,
                                                boolean addShortFilename,
                                                boolean addExtension,
                                                boolean addPath,
                                                boolean addSize,
                                                boolean addIsHidden,
                                                boolean addLastModificationDate,
                                                boolean addUri,
                                                boolean addRootUri,
                                                String shortFilename,
                                                String path,
                                                boolean hidden,
                                                Date modificationDateTime,
                                                String uri,
                                                String rooturi,
                                                String extension,
                                                long size)
                                         throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • convertLineToRow

        public static Object[] convertLineToRow​(org.pentaho.di.core.logging.LogChannelInterface log,
                                                TextFileLine textFileLine,
                                                InputFileMetaInterface info,
                                                Object[] passThruFields,
                                                int nrPassThruFields,
                                                org.pentaho.di.core.row.RowMetaInterface outputRowMeta,
                                                org.pentaho.di.core.row.RowMetaInterface convertRowMeta,
                                                String fname,
                                                long rowNr,
                                                String delimiter,
                                                String enclosure,
                                                String escapeCharacter,
                                                FileErrorHandler errorHandler,
                                                boolean addShortFilename,
                                                boolean addExtension,
                                                boolean addPath,
                                                boolean addSize,
                                                boolean addIsHidden,
                                                boolean addLastModificationDate,
                                                boolean addUri,
                                                boolean addRootUri,
                                                String shortFilename,
                                                String path,
                                                boolean hidden,
                                                Date modificationDateTime,
                                                String uri,
                                                String rooturi,
                                                String extension,
                                                long size,
                                                boolean failOnParseError)
                                         throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • processRow

        public boolean processRow​(StepMetaInterface smi,
                                  StepDataInterface sdi)
                           throws org.pentaho.di.core.exception.KettleException
        Deprecated.
        Description copied from interface: StepInterface
        Perform the equivalent of processing one row. Typically this means reading a row from input (getRow()) and passing a row to output (putRow)).
        Specified by:
        processRow in interface StepInterface
        Overrides:
        processRow in class BaseStep
        Parameters:
        smi - The steps metadata to work with
        sdi - The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)
        Returns:
        false if no more rows can be processed or an error occurred.
        Throws:
        org.pentaho.di.core.exception.KettleException
      • isWaitingForData

        public boolean isWaitingForData()
        Deprecated.