Package org.apache.commons.vfs

Examples of org.apache.commons.vfs.FileSystemException.initCause()


            URL location = FlexibleLocation.resolveLocation("ofbizhome://.");
            FileObject ofbizBase = getContext().resolveFile(location.toString(), properties);
            return VFSUtil.toFileObject(ofbizBase.getFileSystem().getFileSystemManager(), ofbizBase.resolveFile(name.substring(13)).getURL().toString(), properties);
        } catch (Exception e) {
            FileSystemException fse = new FileSystemException(e.getMessage(), null, e);
            fse.initCause(e);
            throw fse;
        }
    }
}
View Full Code Here


            URL location = FlexibleLocation.resolveLocation("component://" + componentName + "/.");
            FileObject ofbizBase = getContext().resolveFile(location.toString(), properties);
            return VFSUtil.toFileObject(ofbizBase.getFileSystem().getFileSystemManager(), ofbizBase.resolveFile(name.substring(restStart)).getURL().toString(), properties);
        } catch (Exception e) {
            FileSystemException fse = new FileSystemException(e.getMessage(), null, e);
            fse.initCause(e);
            throw fse;
        }
    }
}
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.