@Deprecated public static final String[] guessStringsFromLine( LogChannelInterface log, String line, TextFileInputMeta inf, String delimiter ) throws KettleException { return guessStringsFromLine( new Variables(), log, line, inf, delimiter, StringUtil.substituteHex( inf .getEnclosure() ), StringUtil.substituteHex( inf.getEscapeCharacter() ) ); }
/** * Substitutes variables in <code>aString</code> with the environment values in the system properties * * @param aString * the string on which to apply the substitution. * @param systemProperties * the system properties to use * @return the string with the substitution applied. */ public static final synchronized String environmentSubstitute( String aString, Map<String, String> systemProperties ) { Map<String, String> sysMap = new HashMap<String, String>(); synchronized ( sysMap ) { sysMap.putAll( Collections.synchronizedMap( systemProperties ) ); aString = substituteWindows( aString, sysMap ); aString = substituteUnix( aString, sysMap ); aString = substituteHex( aString ); return aString; } }
/** * @deprecated Use {@link #convertLineToRow(LogChannelInterface, TextFileLine, * InputFileMetaInterface, Object[], int, RowMetaInterface,RowMetaInterface, * String, long, String, String, String, FileErrorHandler, boolean, boolean, * boolean, boolean, boolean, boolean, boolean, boolean, String, String, boolean, * Date, String, String, String, long)} instead. */ @Deprecated public 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 ) throws KettleException { return convertLineToRow( log, textFileLine, info, null, 0, outputRowMeta, convertRowMeta, fname, rowNr, delimiter, StringUtil.substituteHex( info.getEnclosure() ), StringUtil.substituteHex( info.getEscapeCharacter() ), errorHandler, addShortFilename, addExtension, addPath, addSize, addIsHidden, addLastModificationDate, addUri, addRootUri, shortFilename, path, hidden, modificationDateTime, uri, rooturi, extension, size ); }
.substituteHex( meta.content.enclosure ), StringUtil.substituteHex( meta.content.escapeCharacter ) );