java.lang.Object
com.alibaba.nacos.common.packagescan.resource.AbstractResource
com.alibaba.nacos.common.packagescan.resource.VfsResource
所有已实现的接口:
InputStreamSource, Resource

public class VfsResource extends AbstractResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications JBoss VFS based Resource implementation.

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+.

从以下版本开始:
3.0
作者:
Ales Justin, Juergen Hoeller, Costin Leau, Sam Brannen
另请参阅:
  • org.jboss.vfs.VirtualFile
  • 构造器概要

    构造器
    构造器
    说明
    VfsResource(Object resource)
    Create a new VfsResource wrapping the given resource handle.
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    This method reads the entire InputStream to determine the content length.
    createRelative(String relativePath)
    This implementation throws a FileNotFoundException, assuming that relative resources cannot be created for this resource.
    boolean
    equals(Object other)
    This implementation compares description strings.
    boolean
    This implementation checks whether a File can be opened, falling back to whether an InputStream can be opened.
    Return a description for this resource, to be used for error output when working with the resource.
    This implementation throws a FileNotFoundException, assuming that the resource cannot be resolved to an absolute file path.
    This implementation always returns null, assuming that this resource type does not have a filename.
    Return an InputStream for the content of an underlying resource.
    This implementation builds a URI based on the URL returned by AbstractResource.getUrl().
    This implementation throws a FileNotFoundException, assuming that the resource cannot be resolved to a URL.
    int
    This implementation returns the description's hash code.
    boolean
    This implementation always returns true for a resource that exists (revised as of 5.1).
    long
    This implementation checks the timestamp of the underlying File, if available.

    从类继承的方法 com.alibaba.nacos.common.packagescan.resource.AbstractResource

    getFileForLastModifiedCheck, isFile, isOpen, readableChannel, toString

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait