Examples of FileSystemException


Examples of org.apache.commons.vfs.FileSystemException

            // after this our resource should be reset
            parent.doListChildrenResolved();
        }
        catch (Exception e)
        {
            throw new FileSystemException(e);
        }
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

            }
        }

        if (children == null)
        {
            throw new FileSystemException("vfs.provider.webdav/list-children.error", resource.getStatusMessage());
        }

        List vfs = new ArrayList(children.length);
        // WebdavFileObject[] vfs = new WebdavFileObject[children.length];
        for (int i = 0; i < children.length; i++)
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

        //// resource.getHttpURL().setEscapedPath(getName().getPath() + '/');
        resource.getHttpURL().setPath(getName().getPathDecoded() + '/');
        final boolean ok = resource.mkcolMethod();
        if (!ok)
        {
            throw new FileSystemException("vfs.provider.webdav/create-collection.error", resource.getStatusMessage());
        }

        // reread allowed methods
        reattach();
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

    {
        final int b1 = is.read();
        final int b2 = is.read();
        if (b1 != 'B' || b2 != 'Z')
        {
            throw new FileSystemException("vfs.provider.compressedFile/not-a-compressedFile-file.error", name);
        }
        return new CBZip2InputStream(is);
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

        resolveRedirection();
        // final boolean ok = resource.deleteMethod(getName().getPathDecoded() /*url.getPath()*/);
        final boolean ok = resource.deleteMethod();
        if (!ok)
        {
            throw new FileSystemException("vfs.provider.webdav/delete-file.error", resource.getStatusMessage());
        }

        // reread allowed methods
        reattach();
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

        // String uri = url.getURI();

        final boolean ok = resource.moveMethod(newfile.getName().getPath());
        if (!ok)
        {
            throw new FileSystemException("vfs.provider.webdav/rename-file.error", resource.getStatusMessage());
        }

        // reread allowed methods
        reattach();
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

            doDetach();
            doAttach();
        }
        catch (Exception e)
        {
            throw new FileSystemException(e);
        }
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

    /**
     * Lists the children of the file.
     */
    protected String[] doListChildren() throws Exception
    {
        throw new FileSystemException("Not implemented.");
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

      {
        // A '..' element - remove the previous element
        if (startElem == startFirstElem)
        {
          // Previous element is missing
          throw new FileSystemException(
              "vfs.provider/invalid-relative-path.error");
        }

        // Find start of previous element
        int pos = startElem - 2;
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException

      {
        continue;
      }
      if (count < 3)
      {
        throw new FileSystemException(
            "vfs.provider/invalid-escape-sequence.error", buffer
                .substring(index, index + count));
      }

      // Decode
      int dig1 = Character.digit(buffer.charAt(index + 1), 16);
      int dig2 = Character.digit(buffer.charAt(index + 2), 16);
      if (dig1 == -1 || dig2 == -1)
      {
        throw new FileSystemException(
            "vfs.provider/invalid-escape-sequence.error", buffer
                .substring(index, index + 3));
      }
      char value = (char) (dig1 << 4 | dig2);
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.