Package org.wymiwyg.commons.util.dirbrowser

Examples of org.wymiwyg.commons.util.dirbrowser.PathNode.list()


          "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


    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.