Package com.caucho.vfs

Examples of com.caucho.vfs.Path.canRead()


      if (! fileName.endsWith(getExtension()))
        continue;

      Path archivePath = getArchiveDirectory().lookup(fileName);
     
      if (! archivePath.canRead())
        continue;
      if (archivePath.isDirectory())
        continue;
     
      int end = fileName.length() - _extension.length();
View Full Code Here


    String resourcePath = loader.getResourcePathSpecificFirst();
    stylePath.addClassPath(resourcePath);
   
    Path hrefPath = stylePath.lookup(href);

    if (hrefPath.canRead()) {
      DynamicClassLoader owningLoader = getStylesheetLoader(href, hrefPath);

      if (owningLoader != null) {
        loader = owningLoader;
View Full Code Here

      Path implicitTld = _jspPath.lookup(_jspPath.getParent() + "/implicit.tld");

      // jsp/10h4
      taglib.setJspVersion("2.0");
     
      if (implicitTld.canRead()) {
        Config config = new Config();
        ImplicitTld tldTaglib = new ImplicitTld();

        config.configure(tldTaglib, implicitTld);
View Full Code Here

    } catch (Throwable e) {
      log.log(Level.FINER, e.toString(), e);
    }

    Path classPath = getWorkPath().lookup(className.replace('.', '/') + ".class");
    if (! classPath.canRead())
      throw new ClassNotFoundException("can't find compiled XSL `" + className + "'");

    DynamicClassLoader loader;
    loader = SimpleLoader.create(parentLoader, getWorkPath(), className);
View Full Code Here

      Path path = Vfs.lookup(realPath);

      Path toc = path.lookup("toc.xml");

      if (toc.canRead()) {
        Config config = new Config();
        config.setEL(false);

        Navigation navigation = new Navigation(this, uri, path, 0);
View Full Code Here

        Path path = Vfs.lookup(realPath);

        Path pwd = path.getParent();
        Path toc = pwd.lookup("toc.xml");

        if (toc.canRead()) {
          Config config = new Config();
          config.setEL(false);

          int p = uri.lastIndexOf('/');
          if (p > 0)
View Full Code Here

        Path path = Vfs.lookup(realPath);

        Path ref = path.lookup("reference.xtp");

        if (ref.canRead()) {
          Config config = new Config();
          config.setEL(false);

          try {
            _referenceDocument =
View Full Code Here

    ArrayList<Path> pathList = getIncludePath(pwd);

    for (int i = 0; i < pathList.size(); i++) {
      Path path = pathList.get(i).lookup(relPath);

      if (path.canRead() && ! path.isDirectory()) {
        return path;
      }
    }

    return null;
View Full Code Here

  public boolean apc_compile_file(Env env, StringValue name)
  {
    try {
      Path path = env.lookup(name);
     
      if (path != null && path.canRead()) {
        env.getQuercus().parse(path);
     
        return true;
      }
    } catch (IOException e) {
View Full Code Here

    Path classPath = getClassDir().lookup(className.replace('.', '/') +
                                          ".class");

    loadPage(page, config, null, uri);

    if (classPath.canRead())
      page._caucho_addDepend(classPath.createDepend());

    return page;
  }
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.