类 OriginTrackedResource
java.lang.Object
org.springframework.boot.origin.OriginTrackedResource
- 所有已实现的接口:
OriginProvider
,InputStreamSource
,Resource
- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明long
createRelative
(String relativePath) boolean
boolean
exists()
getFile()
Return the source origin ornull
if the origin is not known.getURI()
getURL()
int
hashCode()
boolean
isFile()
boolean
isOpen()
boolean
long
static OriginTrackedResource
Return a neworigin tracked
version the givenResource
.of
(WritableResource resource, Origin origin) Return a neworigin tracked
version 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
从接口复制的说明:OriginProvider
Return the source origin ornull
if 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 tracked
version the givenWritableResource
.- 参数:
resource
- the tracked resourceorigin
- the origin of the resource- 返回:
- an
OriginTrackedResource.OriginTrackedWritableResource
instance
-
of
Return a neworigin tracked
version the givenResource
.- 参数:
resource
- the tracked resourceorigin
- the origin of the resource- 返回:
- an
OriginTrackedResource
instance
-