public class VFSUtil extends Object
Constructor and Description |
---|
VFSUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
calculateHref(org.apache.commons.vfs.FileObject rootDir,
org.apache.commons.vfs.FileObject currentFile) |
static Resource |
createResource(org.apache.commons.vfs.FileObject rootDir,
org.apache.commons.vfs.FileObject file,
String inputEncoding) |
static org.apache.commons.vfs.FileObject |
resolveFileObject(String inputLocation)
First tries to load the inputLocation via VFS; if that doesn't work it tries to load it as a local File
|
static InputStream |
resolveInputStream(String inputLocation)
First tries to load the inputLocation via VFS; if that doesn't work it tries to load it as a local File
|
public static Resource createResource(org.apache.commons.vfs.FileObject rootDir, org.apache.commons.vfs.FileObject file, String inputEncoding) throws IOException
IOException
public static String calculateHref(org.apache.commons.vfs.FileObject rootDir, org.apache.commons.vfs.FileObject currentFile) throws IOException
IOException
public static org.apache.commons.vfs.FileObject resolveFileObject(String inputLocation) throws org.apache.commons.vfs.FileSystemException
inputLocation
- org.apache.commons.vfs.FileSystemException
public static InputStream resolveInputStream(String inputLocation) throws org.apache.commons.vfs.FileSystemException
inputLocation
- org.apache.commons.vfs.FileSystemException
Copyright © 2009–2017. All rights reserved.