public abstract class VfsUtils extends Object
As of Spring 4.0, this class supports VFS 3.x on JBoss AS 6+
(package org.jboss.vfs) and is in particular compatible with
JBoss AS 7 and WildFly 8+.
Thanks go to Marius Bogoevici for the initial patch. Note: This is an internal class and should not be used outside the framework.
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Method |
VIRTUAL_FILE_METHOD_VISIT |
protected static Class<?> |
VIRTUAL_FILE_VISITOR_INTERFACE |
| 构造器和说明 |
|---|
VfsUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static String |
doGetPath(Object resource) |
protected static Object |
doGetVisitorAttributes() |
(专用程序包) static boolean |
exists(Object vfsResource) |
(专用程序包) static Object |
getChild(Object vfsResource,
String path) |
(专用程序包) static File |
getFile(Object vfsResource) |
(专用程序包) static InputStream |
getInputStream(Object vfsResource) |
(专用程序包) static long |
getLastModified(Object vfsResource) |
(专用程序包) static String |
getName(Object vfsResource) |
(专用程序包) static Object |
getRelative(URL url) |
(专用程序包) static Object |
getRoot(URI url) |
protected static Object |
getRoot(URL url) |
(专用程序包) static long |
getSize(Object vfsResource) |
(专用程序包) static URI |
getURI(Object vfsResource) |
(专用程序包) static URL |
getURL(Object vfsResource) |
protected static Object |
invokeVfsMethod(Method method,
Object target,
Object... args) |
(专用程序包) static boolean |
isReadable(Object vfsResource) |
protected static final Class<?> VIRTUAL_FILE_VISITOR_INTERFACE
protected static final Method VIRTUAL_FILE_METHOD_VISIT
protected static Object invokeVfsMethod(Method method, Object target, Object... args) throws IOException
IOExceptionstatic boolean exists(Object vfsResource)
static boolean isReadable(Object vfsResource)
static long getSize(Object vfsResource) throws IOException
IOExceptionstatic long getLastModified(Object vfsResource) throws IOException
IOExceptionstatic InputStream getInputStream(Object vfsResource) throws IOException
IOExceptionstatic URL getURL(Object vfsResource) throws IOException
IOExceptionstatic URI getURI(Object vfsResource) throws IOException
IOExceptionstatic Object getRelative(URL url) throws IOException
IOExceptionstatic Object getChild(Object vfsResource, String path) throws IOException
IOExceptionstatic File getFile(Object vfsResource) throws IOException
IOExceptionstatic Object getRoot(URI url) throws IOException
IOExceptionprotected static Object getRoot(URL url) throws IOException
IOExceptionprotected static Object doGetVisitorAttributes()
Copyright © 2020. All rights reserved.