FileSystemException
259260261262263264265266
// after this our resource should be reset parent.doListChildrenResolved(); } catch (Exception e) { throw new FileSystemException(e); } }
309310311312313314315316317318319
} } 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++)
351352353354355356357358359360361
//// 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(); }
505152535455565758
{ 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); }
368369370371372373374375376377378
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(); }
387388389390391392393394395396397
// 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(); }
491492493494495496497498
doDetach(); doAttach(); } catch (Exception e) { throw new FileSystemException(e); } }
148149150151152153154
/** * Lists the children of the file. */ protected String[] doListChildren() throws Exception { throw new FileSystemException("Not implemented."); }
148149150151152153154155156157158
{ // 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;
301302303304305306307308309310311312313314315316317318319320321
{ 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);