Codota Logo
FileInputList$FileTypeFilter.isFileTypeAllowed
Code IndexAdd Codota to your IDE (free)

How to use
isFileTypeAllowed
method
in
org.pentaho.di.core.fileinput.FileInputList$FileTypeFilter

Best Java code snippets using org.pentaho.di.core.fileinput.FileInputList$FileTypeFilter.isFileTypeAllowed (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

 @Override
 public boolean includeFile( FileSelectInfo info ) {
  // Never return the parent directory of a file list.
  if ( info.getDepth() == 0 ) {
   return false;
  }
  FileObject fileObject = info.getFile();
  try {
   if ( fileObject != null && filter.isFileTypeAllowed( fileObject.getType() ) ) {
    String name = info.getFile().getName().getBaseName();
    boolean matches = true;
    if ( !Utils.isEmpty( onemask ) ) {
     matches = Pattern.matches( onemask, name );
    }
    boolean excludematches = false;
    if ( !Utils.isEmpty( excludeonemask ) ) {
     excludematches = Pattern.matches( excludeonemask, name );
    }
    return ( matches && !excludematches );
   }
   return false;
  } catch ( IOException ex ) {
   // Upon error don't process the file.
   return false;
  }
 }
} );
origin: pentaho/pentaho-kettle

 @Override
 public boolean includeFile( FileSelectInfo info ) {
  // Never return the parent directory of a file list.
  if ( info.getDepth() == 0 ) {
   return false;
  }
  FileObject fileObject = info.getFile();
  try {
   if ( fileObject != null && filter.isFileTypeAllowed( fileObject.getType() ) ) {
    return true;
   }
   return false;
  } catch ( IOException ex ) {
   // Upon error don't process the file.
   return false;
  }
 }
} );
org.pentaho.di.core.fileinputFileInputList$FileTypeFilterisFileTypeAllowed

Popular methods of FileInputList$FileTypeFilter

  • getByOrdinal
  • ordinal
  • values
  • equals
  • getByName
  • toString

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JCheckBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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