Examples of PathNameFilter


Examples of org.wymiwyg.commons.util.dirbrowser.PathNameFilter

   * @throws HandlerException
   */
  private void selectBestChild(PathNode pathNode, final String baseName,
      Request request, Response response) throws HandlerException {
    //log.info("getting "+baseName+" in "+pathNode);
    String[] childStrings = pathNode.list(new PathNameFilter() {

      public boolean accept(PathNode dir, String name) {
        //log.info("checking "+name+" in "+dir);
        if (!name.startsWith(baseName)) {
          return false;
View Full Code Here

Examples of org.wymiwyg.commons.util.dirbrowser.PathNameFilter

  }

  private void installBundlesForStartLevels(final BundleContext bundleContext,
      final PathNode bundlesRoot, final String revertParam) throws IOException, BundleException {
    final String startlevelpathprefix = "startlevel-";
    final String[] startLevelePaths = bundlesRoot.list(new PathNameFilter() {

      @Override
      public boolean accept(PathNode dir, String name) {
        return name.startsWith(startlevelpathprefix);
      }
View Full Code Here

Examples of org.wymiwyg.commons.util.dirbrowser.PathNameFilter

          "META-INF/rwcf/"/* model-section.rdf" */
      );
      while (enumeration.hasMoreElements()) {
        URL current = (URL) enumeration.nextElement();
        PathNode node = PathNodeFactory.getPathNode(current);
        String[] subFiles = node.list(new PathNameFilter() {
          public boolean accept(PathNode dir, String name) {
            return name.endsWith(".rdf") || name.endsWith(".n3");
          }
        });
        for (int i = 0; i < subFiles.length; i++) {
View Full Code Here

Examples of org.wymiwyg.commons.util.dirbrowser.PathNameFilter

    String extraPath = url.getPath();
    extraPath = addIndex(root, extraPath);
    PathHandler resourceHandler = new PathHandler(root, extraPath);
    PathNode directory = resourceHandler.getDirectory();
    final String namePrefix = resourceHandler.getFilePortion() + ".";
    String[] matching = directory.list(new PathNameFilter() {
      public boolean accept(PathNode dir, String name) {
        return name.startsWith(namePrefix)
            && (name.charAt(name.length() - 1) != '~');
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.