Home | History | Annotate | Download | only in filefilter

Lines Matching defs:suffixes

50     /** The filename suffixes to search for */
51 private final String[] suffixes;
79 this.suffixes = new String[] {suffix};
89 * @param suffixes the suffixes to allow, must not be null
92 public SuffixFileFilter(String[] suffixes) {
93 this(suffixes, IOCase.SENSITIVE);
103 * @param suffixes the suffixes to allow, must not be null
108 public SuffixFileFilter(String[] suffixes, IOCase caseSensitivity) {
109 if (suffixes == null) {
110 throw new IllegalArgumentException("The array of suffixes must not be null");
112 this.suffixes = suffixes;
117 * Constructs a new Suffix file filter for a list of suffixes.
119 * @param suffixes the suffixes to allow, must not be null
123 public SuffixFileFilter(List<String> suffixes) {
124 this(suffixes, IOCase.SENSITIVE);
128 * Constructs a new Suffix file filter for a list of suffixes
131 * @param suffixes the suffixes to allow, must not be null
137 public SuffixFileFilter(List<String> suffixes, IOCase caseSensitivity) {
138 if (suffixes == null) {
139 throw new IllegalArgumentException("The list of suffixes must not be null");
141 this.suffixes = suffixes.toArray(new String[suffixes.size()]);
149 * @return true if the filename ends with one of our suffixes
154 for (int i = 0; i < this.suffixes.length; i++) {
155 if (caseSensitivity.checkEndsWith(name, suffixes[i])) {
167 * @return true if the filename ends with one of our suffixes
171 for (int i = 0; i < this.suffixes.length; i++) {
172 if (caseSensitivity.checkEndsWith(name, suffixes[i])) {
189 if (suffixes != null) {
190 for (int i = 0; i < suffixes.length; i++) {
194 buffer.append(suffixes[i]);