Examples of VFSException


Examples of org.jboss.fresh.vfs.VFSException

   */
  public void remove(UserCtx ctx, FileName name, boolean direct)
      throws VFSException {
    MountData dat = findFS(name);
    if(dat == null)
      throw new VFSException("File does not exist: " + name);

    dat.vfs.remove(ctx, translate(dat, name), direct);
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

            ex.printStackTrace();
          }
        }       
        // and delete it
      } catch(IOException ex) {
        throw new VFSException(ex);
      }

      dat.vfs.remove(ctx, oldName, direct);
    }
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

        result = super.getFileInfo(ctx, name, direct);

    } catch (Exception e) {
      log.error(e.getMessage(), e);

      VFSException ve = new VFSException();

      ve.setUnderlyingThrowable(e);
      throw ve;
    }

    //log.debug( "ZZZZZZZZZZZZZZZZZZZZZ "  + result );
    // log.trace("/vfs/cache", "ZZZZZZZZZZZZZZZZZZZZZ");
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

        result = fromCache[0];
      else
        result = super.exists(ctx, name, direct);

    } catch (Exception e) {
      VFSException ve = new VFSException();

      ve.setUnderlyingThrowable(e);
      throw ve;
    }

    return result;
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

        result = fromCache[0];
      else
        result = super.list(ctx, name, direct);

    } catch (Exception e) {
      VFSException ve = new VFSException();

      ve.setUnderlyingThrowable(e);
      throw ve;
    }

    return result;
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

        result = fromCache[0];
      else
        result = super.hasContent(uctx, file, direct);

    } catch (Exception e) {
      VFSException ve = new VFSException();

      ve.setUnderlyingThrowable(e);
      throw ve;
    }

    return result;
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

      } else {
        return node;
      }
    }

    throw new VFSException("Link resolution infinitely looped: " + name);
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

    try {
      node = getResolvedNode(path.toString());
    } catch(NameNotFoundException ex) {}

    if(node == null)
      throw new VFSException("File not found: " + path);

    if(!(node instanceof Context))
      throw new VFSException("File is not a directory");

    try {
      names = ((Context) node).list("");
    } catch(NotContextException ex) {
      throw new VFSException("File is not a directory");
    }

    return countNamingEnum(names);
  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

        ls.add(new FileName(name));
        return ls;
      }
    }

    throw new VFSException("Link resolution infinitely looped: " + name);

  }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFSException

    try {
      node = getResolvedNode(path.toString());
    } catch(NameNotFoundException ex) {}

    if(node == null)
      throw new VFSException("File not found: " + path);

    if(!(node instanceof Context))
      throw new VFSException("File is not a directory");

    try {
      names = ((Context) node).listBindings("");
    } catch(NotContextException ex) {
      throw new VFSException("File is not a directory");
    }

    LinkedList ls = new LinkedList();
    while(names.hasMore()) {
      Binding binding = (Binding) names.next();
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.