Package org.apache.commons.vfs

Examples of org.apache.commons.vfs.FileSystemException


            {
                super.close();
            }
            catch (final IOException e)
            {
                throw new FileSystemException("vfs.provider/close-outstr.error", file, e);
            }
        }
View Full Code Here


                {
                    endOutput();
                }
                catch (Exception e)
                {
                    throw new FileSystemException("vfs.provider/close-outstr.error", file, e);
                }
            }
        }
View Full Code Here

        }
        final URL url = cl.getResource(resourceName);

        if (url == null)
        {
            throw new FileSystemException("vfs.provider.url/badly-formed-uri.error", uri);
        }

        FileObject fo = getContext().getFileSystemManager().resolveFile(url.toExternalForm());
        return fo;
    }
View Full Code Here

     */
    void setType(FileType type) throws FileSystemException
    {
        if (type != FileType.FOLDER && type != FileType.FILE)
        {
            throw new FileSystemException("vfs.provider/filename-type.error");
        }

        this.type = type;
    }
View Full Code Here

                }
            }
        }
        catch (IOException e)
        {
            throw new FileSystemException(e);
        }
        finally
        {
            closeCommunicationLink();
        }
View Full Code Here

            }
            return tarFile;
        }
        catch (IOException e)
        {
            throw new FileSystemException(e);
        }
    }
View Full Code Here

            {
                this.tarFile.close();
            }
            catch (IOException e)
            {
                throw new FileSystemException("vfs.provider.tar/close-tar-file.error", file, e);
            }
            tarFile = null;
        }
        TarInputStream tarFile = createTarFile(this.file);
        this.tarFile = tarFile;
View Full Code Here

            }
            return new TarInputStream(new FileInputStream(file));
        }
        catch (IOException ioe)
        {
            throw new FileSystemException("vfs.provider.tar/open-tar-file.error", file, ioe);
        }
    }
View Full Code Here

            try
            {
                final boolean ok = resource.putMethod(webdavTmp.getContent().getInputStream());
                if (!ok)
                {
                    throw new FileSystemException("vfs.provider.webdav/write-file.error", resource.getStatusMessage());
                }
            }
            finally
            {
                // close and delete the temporary file
View Full Code Here

                return;
            }

            if (pos < 0)
            {
                throw new FileSystemException(
                    "vfs.provider/random-access-invalid-position.error",
                    new Object[]{new Long(pos)});
            }
            if (dis != null)
            {
View Full Code Here

TOP

Related Classes of org.apache.commons.vfs.FileSystemException

Copyright © 2018 www.massapicom. 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.