public SuffixFileFilter(String[] suffixes,IOCase caseSensitivity){
  if (suffixes == null) {
    throw new IllegalArgumentException("The array of suffixes must not be null");
  }
  this.suffixes=new String[suffixes.length];
  System.arraycopy(suffixes,0,this.suffixes,0,suffixes.length);
  this.caseSensitivity=caseSensitivity == null ? IOCase.SENSITIVE : caseSensitivity;
}

public SuffixFileFilter ( String [ ] suffixes , IOCase caseSensitivity ) { if ( suffixes == null ) { throw new IllegalArgumentException ( "The array of suffixes must not be null" ) ; } this . suffixes = new String [ suffixes . length ] ; System . arraycopy ( suffixes , 0 , this . suffixes , 0 , suffixes . length ) ; this . caseSensitivity = caseSensitivity == null ? IOCase . SENSITIVE : caseSensitivity ; }
constructs a new suffix file filter for an array of suffixs specifying case - sensitivity . < p > the array is not cloned , so could be changed after constructing the instance . this would be inadvisable however .
