类 OriginTrackedResource
java.lang.Object
org.springframework.boot.origin.OriginTrackedResource
- 所有已实现的接口:
OriginProvider,InputStreamSource,Resource
- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明longcreateRelative(String relativePath) booleanbooleanexists()getFile()Return the source origin ornullif the origin is not known.getURI()getURL()inthashCode()booleanisFile()booleanisOpen()booleanlongstatic OriginTrackedResourceReturn a neworigin trackedversion the givenResource.of(WritableResource resource, Origin origin) Return a neworigin trackedversion the givenWritableResource.toString()从接口继承的方法 org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString
-
方法详细资料
-
getInputStream
- 指定者:
getInputStream在接口中InputStreamSource- 抛出:
IOException
-
exists
public boolean exists() -
isReadable
public boolean isReadable()- 指定者:
isReadable在接口中Resource
-
isOpen
public boolean isOpen() -
isFile
public boolean isFile() -
getURL
- 指定者:
getURL在接口中Resource- 抛出:
IOException
-
getURI
- 指定者:
getURI在接口中Resource- 抛出:
IOException
-
getFile
- 指定者:
getFile在接口中Resource- 抛出:
IOException
-
readableChannel
- 指定者:
readableChannel在接口中Resource- 抛出:
IOException
-
contentLength
- 指定者:
contentLength在接口中Resource- 抛出:
IOException
-
lastModified
- 指定者:
lastModified在接口中Resource- 抛出:
IOException
-
createRelative
- 指定者:
createRelative在接口中Resource- 抛出:
IOException
-
getFilename
- 指定者:
getFilename在接口中Resource
-
getDescription
- 指定者:
getDescription在接口中Resource
-
getResource
-
getOrigin
从接口复制的说明:OriginProviderReturn the source origin ornullif the origin is not known.- 指定者:
getOrigin在接口中OriginProvider- 返回:
- the origin or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
of
public static OriginTrackedResource.OriginTrackedWritableResource of(WritableResource resource, Origin origin) Return a neworigin trackedversion the givenWritableResource.- 参数:
resource- the tracked resourceorigin- the origin of the resource- 返回:
- an
OriginTrackedResource.OriginTrackedWritableResourceinstance
-
of
Return a neworigin trackedversion the givenResource.- 参数:
resource- the tracked resourceorigin- the origin of the resource- 返回:
- an
OriginTrackedResourceinstance
-