类 OriginTrackedResource
java.lang.Object
cn.taketoday.core.io.ResourceDecorator
cn.taketoday.origin.OriginTrackedResource
- 所有已实现的接口:
cn.taketoday.core.io.InputStreamSource,cn.taketoday.core.io.Resource,OriginProvider
public class OriginTrackedResource
extends cn.taketoday.core.io.ResourceDecorator
implements cn.taketoday.core.io.Resource, OriginProvider
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 cn.taketoday.core.io.ResourceDecorator
delegate从接口继承的字段 cn.taketoday.core.io.Resource
EMPTY_ARRAY -
方法概要
修饰符和类型方法说明booleanstatic OriginTrackedResourceReturn a neworigin trackedversion the givenResource.Return a neworigin trackedversion the givenWritableResource.Return the source origin ornullif the origin is not known.inthashCode()toString()从类继承的方法 cn.taketoday.core.io.ResourceDecorator
contentLength, createRelative, exists, getDelegate, getFile, getInputStream, getName, getReader, getReader, getURI, getURL, isDirectory, isFile, isOpen, isReadable, lastModified, list, list, readableChannel, setDelegate从接口继承的方法 cn.taketoday.core.io.InputStreamSource
getInputStream, getReader, getReader, readableChannel从接口继承的方法 cn.taketoday.core.io.Resource
contentLength, createRelative, exists, getFile, getName, getURI, getURL, isDirectory, isFile, isOpen, isReadable, lastModified, list, list
-
方法详细资料
-
getOrigin
从接口复制的说明:OriginProviderReturn the source origin ornullif the origin is not known.- 指定者:
getOrigin在接口中OriginProvider- 返回:
- the origin or
null
-
equals
- 覆盖:
equals在类中cn.taketoday.core.io.ResourceDecorator
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中cn.taketoday.core.io.ResourceDecorator
-
toString
- 指定者:
toString在接口中cn.taketoday.core.io.Resource- 覆盖:
toString在类中cn.taketoday.core.io.ResourceDecorator
-
from
public static OriginTrackedResource.OriginTrackedWritableResource from(cn.taketoday.core.io.WritableResource resource, @Nullable Origin origin) Return a neworigin trackedversion the givenWritableResource.- 参数:
resource- the tracked resourceorigin- the origin of the resource- 返回:
- a
OriginTrackedResource.OriginTrackedWritableResourceinstance
-
from
public static OriginTrackedResource from(cn.taketoday.core.io.Resource resource, @Nullable Origin origin) Return a neworigin trackedversion the givenResource.- 参数:
resource- the tracked resourceorigin- the origin of the resource- 返回:
- a
OriginTrackedResourceinstance
-