public class TextFileInputUtils extends Object
| 构造器和说明 |
|---|
TextFileInputUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
checkPattern(String text,
String regex)
Finds a pattern within a String returning the occurrences number
|
static Object[] |
convertLineToRow(org.pentaho.di.core.logging.LogChannelInterface log,
TextFileLine textFileLine,
TextFileInputMeta 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,
BaseFileInputAdditionalField additionalOutputFields,
String shortFilename,
String path,
boolean hidden,
Date modificationDateTime,
String uri,
String rooturi,
String extension,
Long size) |
static Object[] |
convertLineToRow(org.pentaho.di.core.logging.LogChannelInterface log,
TextFileLine textFileLine,
TextFileInputMeta 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,
BaseFileInputAdditionalField additionalOutputFields,
String shortFilename,
String path,
boolean hidden,
Date modificationDateTime,
String uri,
String rooturi,
String extension,
Long size,
boolean failOnParseError) |
static String[] |
convertLineToStrings(org.pentaho.di.core.logging.LogChannelInterface log,
String line,
TextFileInputMeta inf,
String delimiter,
String enclosure,
String escapeCharacters) |
static String |
getLine(org.pentaho.di.core.logging.LogChannelInterface log,
InputStreamReader reader,
EncodingType encodingType,
int formatNr,
StringBuilder line) |
static String |
getLine(org.pentaho.di.core.logging.LogChannelInterface log,
InputStreamReader reader,
int formatNr,
StringBuilder line) |
static 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) |
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
org.pentaho.di.core.exception.KettleExceptionpublic static final String getLine(org.pentaho.di.core.logging.LogChannelInterface log, InputStreamReader reader, int formatNr, StringBuilder line) throws org.pentaho.di.core.exception.KettleFileException
org.pentaho.di.core.exception.KettleFileExceptionpublic 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
org.pentaho.di.core.exception.KettleFileExceptionpublic static final Object[] convertLineToRow(org.pentaho.di.core.logging.LogChannelInterface log, TextFileLine textFileLine, TextFileInputMeta 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, BaseFileInputAdditionalField additionalOutputFields, String shortFilename, String path, boolean hidden, Date modificationDateTime, String uri, String rooturi, String extension, Long size) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic static final Object[] convertLineToRow(org.pentaho.di.core.logging.LogChannelInterface log, TextFileLine textFileLine, TextFileInputMeta 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, BaseFileInputAdditionalField additionalOutputFields, 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
failOnParseError - if set to true, parsing failure on any line will cause parsing to be terminated; when
set to false, parsing failure on a given line will not prevent remaining lines from
being parsed - this allows us to analyze fields, even if some field is mis-configured
and causes a parsing error for the values of that field.org.pentaho.di.core.exception.KettleExceptionpublic static final String[] convertLineToStrings(org.pentaho.di.core.logging.LogChannelInterface log, String line, TextFileInputMeta inf, String delimiter, String enclosure, String escapeCharacters) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionCopyright © 2024 Hitachi Vantara. All rights reserved.