@Test public void testGetLineDOS() throws KettleFileException, UnsupportedEncodingException { String input = "col1\tcol2\tcol3\r\ndata1\tdata2\tdata3\r\n"; String expected = "col1\tcol2\tcol3"; String output = TextFileInput.getLine( null, getInputStreamReader( input ), TextFileInputMeta.FILE_FORMAT_DOS, new StringBuilder( 1000 ) ); assertEquals( expected, output ); }
public static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line ) throws KettleFileException { EncodingType type = EncodingType.guessEncodingType( reader.getEncoding() ); return getLine( log, reader, type, formatNr, line ); }
TextFileInput extends BaseStep implements StepInterface { public static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line ) throws KettleFileException { EncodingType type = EncodingType.guessEncodingType( reader.getEncoding() ); return getLine( log, reader, type, formatNr, line ); } }
TextFileInput extends BaseStep implements StepInterface { public static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line ) throws KettleFileException { EncodingType type = EncodingType.guessEncodingType( reader.getEncoding() ); return getLine( log, reader, type, formatNr, line ); } TextFileInput( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta,
      Trans trans ); }
TextFileInput extends BaseStep implements StepInterface { public static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line ) throws KettleFileException { EncodingType type = EncodingType.guessEncodingType( reader.getEncoding() ); return getLine( log, reader, type, formatNr, line ); } TextFileInput( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta,
      Trans trans ); static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr,
      StringBuilder line ); static final String getLine( LogChannelInterface log, InputStreamReader reader, EncodingType encodingType,
      int formatNr, StringBuilder line ); @Deprecated static final String[] guessStringsFromLine( LogChannelInterface log, String line, TextFileInputMeta inf,
      String delimiter ); static final String[] guessStringsFromLine( VariableSpace space, LogChannelInterface log, String line,
      TextFileInputMeta inf, String delimiter, String enclosure, String escapeCharacter ); static final String[] convertLineToStrings( LogChannelInterface log, String line, InputFileMetaInterface inf,
      String delimiter, String enclosure, String escapeCharacters ); @Deprecated static final Object[] convertLineToRow( LogChannelInterface log, TextFileLine textFileLine,
      InputFileMetaInterface info, RowMetaInterface outputRowMeta, RowMetaInterface convertRowMeta, String fname,
      long rowNr, String delimiter, 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 ); static Object[] convertLineToRow( LogChannelInterface log, TextFileLine textFileLine,
      InputFileMetaInterface info, Object[] passThruFields, int nrPassThruFields, RowMetaInterface outputRowMeta,
      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 ); @Override boolean processRow( StepMetaInterface smi, StepDataInterface sdi ); @Override boolean init( StepMetaInterface smi, StepDataInterface sdi ); @Override void dispose( StepMetaInterface smi, StepDataInterface sdi ); boolean isWaitingForData(); }
TextFileInput extends BaseStep implements StepInterface { public static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line ) throws KettleFileException { EncodingType type = EncodingType.guessEncodingType( reader.getEncoding() ); return getLine( log, reader, type, formatNr, line ); } TextFileInput( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta,
      Trans trans ); static final String getLine( LogChannelInterface log, InputStreamReader reader, int formatNr,
      StringBuilder line ); static final String getLine( LogChannelInterface log, InputStreamReader reader, EncodingType encodingType,
      int formatNr, StringBuilder line ); @Deprecated static final String[] guessStringsFromLine( LogChannelInterface log, String line, TextFileInputMeta inf,
      String delimiter ); static final String[] guessStringsFromLine( VariableSpace space, LogChannelInterface log, String line,
      TextFileInputMeta inf, String delimiter, String enclosure, String escapeCharacter ); static final String[] convertLineToStrings( LogChannelInterface log, String line, InputFileMetaInterface inf,
      String delimiter, String enclosure, String escapeCharacters ); @Deprecated static final Object[] convertLineToRow( LogChannelInterface log, TextFileLine textFileLine,
      InputFileMetaInterface info, RowMetaInterface outputRowMeta, RowMetaInterface convertRowMeta, String fname,
      long rowNr, String delimiter, 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 ); static Object[] convertLineToRow( LogChannelInterface log, TextFileLine textFileLine,
      InputFileMetaInterface info, Object[] passThruFields, int nrPassThruFields, RowMetaInterface outputRowMeta,
      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 ); @Override boolean processRow( StepMetaInterface smi, StepDataInterface sdi ); @Override boolean init( StepMetaInterface smi, StepDataInterface sdi ); @Override void dispose( StepMetaInterface smi, StepDataInterface sdi ); boolean isWaitingForData();  }