Codota Logo
org.pentaho.di.core.fileinput
Code IndexAdd Codota to your IDE (free)

How to use org.pentaho.di.core.fileinput

Best Java code snippets using org.pentaho.di.core.fileinput (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

public static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                      String[] excludeFileMask, String[] fileRequired,
                      boolean[] includeSubdirs ) {
 return createFileList( space, fileName, fileMask, excludeFileMask, fileRequired, includeSubdirs, null );
}
origin: pentaho/pentaho-kettle

public static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                      String[] excludeFileMask, String[] fileRequired,
                      boolean[] includeSubdirs ) {
 return createFilePathList( space, fileName, fileMask, excludeFileMask, fileRequired, includeSubdirs, null );
}
origin: pentaho/pentaho-kettle

public static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                      String[] excludeFileMask, String[] fileRequired ) {
 boolean[] includeSubdirs = includeSubdirsFalse( fileName.length );
 return createFilePathList( space, fileName, fileMask, excludeFileMask, fileRequired, includeSubdirs, null );
}
origin: pentaho/pentaho-kettle

public static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                      String[] excludeFileMask, String[] fileRequired ) {
 boolean[] includeSubdirs = includeSubdirsFalse( fileName.length );
 return createFileList( space, fileName, fileMask, excludeFileMask, fileRequired, includeSubdirs, null );
}
origin: pentaho/pentaho-kettle

public static FileTypeFilter getByOrdinal( int ordinal ) {
 for ( FileTypeFilter filter : FileTypeFilter.values() ) {
  if ( filter.ordinal() == ordinal ) {
   return filter;
  }
 }
 return ONLY_FILES;
}
origin: pentaho/pentaho-kettle

public static Charset guessEncoding( File f, int bufferLength, Charset defaultCharset ) throws FileNotFoundException, IOException {
 FileInputStream fis = new FileInputStream( f );
 byte[] buffer = new byte[bufferLength];
 fis.read( buffer );
 fis.close();
 CharsetToolkit toolkit = new CharsetToolkit( buffer );
 toolkit.setDefaultCharset( defaultCharset );
 return toolkit.guessEncoding();
}
origin: pentaho/pentaho-kettle

/**
 * Constructor of the <code>com.glaforge.i18n.io.CharsetToolkit</code> utility class.
 *
 * @param buffer
 *          the byte buffer of which we want to know the encoding.
 */
public CharsetToolkit( byte[] buffer ) {
 this.buffer = buffer;
 this.defaultCharset = getDefaultSystemCharset();
}
origin: pentaho/pentaho-kettle

 public static FileTypeFilter getByName( String name ) {
  for ( FileTypeFilter filter : FileTypeFilter.values() ) {
   if ( filter.name.equals( name ) ) {
    return filter;
   }
  }
  return ONLY_FILES;
 }
}
origin: pentaho/pentaho-kettle

public FileInputList getFolderList( VariableSpace space ) {
 return FileInputList.createFolderList( space, folderName, folderRequired );
}
origin: pentaho/pentaho-kettle

/**
 * Constructor of the <code>com.glaforge.i18n.io.CharsetToolkit</code> utility class.
 *
 * @param buffer
 *          the byte buffer of which we want to know the encoding.
 * @param defaultCharset
 *          the default Charset to use in case an 8-bit charset is recognized.
 */
public CharsetToolkit( byte[] buffer, Charset defaultCharset ) {
 this.buffer = buffer;
 setDefaultCharset( defaultCharset );
}
origin: pentaho/pentaho-kettle

 @Override
 public boolean validateTestObject( FileInputList.FileTypeFilter testObject, Object actual ) {
  if ( !( actual instanceof FileInputList.FileTypeFilter ) ) {
   return false;
  }
  return testObject.equals( actual );
 }
}
origin: pentaho/pentaho-kettle

public static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                      String[] fileRequired, boolean[] includeSubdirs ) {
 return createFileList(
  space, fileName, fileMask, new String[ fileName.length ], fileRequired, includeSubdirs, null );
}
origin: pentaho/pentaho-kettle

 public static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                       String[] fileRequired ) {
  boolean[] includeSubdirs = includeSubdirsFalse( fileName.length );
  return createFilePathList(
   space, fileName, fileMask, new String[ fileName.length ], fileRequired, includeSubdirs, null );
 }
}
origin: pentaho/pentaho-kettle

public String[] getFilePaths( VariableSpace space ) {
 return FileInputList.createFilePathList(
  space, new String[] { dbfFileName }, new String[] { null }, new String[] { null }, new String[] { "N" } );
}
origin: pentaho/pentaho-kettle

/**
 * Defines the default <code>Charset</code> used in case the buffer represents an 8-bit <code>Charset</code>.
 *
 * @param defaultCharset
 *          the default <code>Charset</code> to be returned by <code>guessEncoding()</code> if an 8-bit
 *          <code>Charset</code> is encountered.
 */
public void setDefaultCharset( Charset defaultCharset ) {
 if ( defaultCharset != null ) {
  this.defaultCharset = defaultCharset;
 } else {
  this.defaultCharset = getDefaultSystemCharset();
 }
}
origin: pentaho/pentaho-kettle

public FileInputList getDynamicFolderList( VariableSpace space, String[] folderName, String[] folderRequired ) {
 return FileInputList.createFolderList( space, folderName, folderRequired );
}
origin: pentaho/pentaho-kettle

public FileInputList getFiles( VariableSpace space ) {
 String[] required = new String[fileName.length];
 boolean[] subdirs = new boolean[fileName.length]; // boolean arrays are defaulted to false.
 for ( int i = 0; i < required.length; i++ ) {
  required[i] = "Y";
 }
 return FileInputList.createFileList( space, fileName, fileMask, excludeFileMask, required, subdirs );
}
origin: pentaho/pentaho-kettle

public FileInputList getTextFileList( VariableSpace space ) {
 return FileInputList.createFileList(
  space, new String[] { dbfFileName }, new String[] { null }, new String[] { null }, new String[] { "N" } );
}
origin: pentaho/pentaho-kettle

public FileInputList getTextFileList( VariableSpace space ) {
 return FileInputList.createFileList(
   space, inputFiles.fileName, inputFiles.fileMask, inputFiles.excludeFileMask,
   inputFiles.fileRequired, inputFiles.includeSubFolderBoolean() );
}
origin: pentaho/pentaho-kettle

public FileInputList getFileList( VariableSpace space ) {
 normilizeAllocation();
 return FileInputList.createFileList(
  space, fileName, fileMask, excludeFileMask, fileRequired, includeSubFolderBoolean() );
}
org.pentaho.di.core.fileinput

Most used classes

  • FileInputList
  • FileInputList$FileTypeFilter
  • CharsetToolkit
    Utility class to guess the encoding of a given byte array. The guess is unfortunately not 100% sure
  • NonAccessibleFileObject
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now