Ejemplo n.º 1
0
  /**
   * Adds the given file filter.
   *
   * @param filter file filter to add.
   * @throws IllegalStateException if the scanner hasn't finished processing yet (<code>
   *     isFinished() == true</code>)
   */
  public void addFilter(FilenameFilter filter) {
    if (isFinished()) {
      throw new IllegalStateException(
          ResourceBundleFactory.getBundle(BUNDLE_NAME).getString("SCANNER_RUNNING" /* NOI18N */));
    }

    _filters.addFilter(filter);
  }