接口 EncodedResource
- 所有超级接口:
InputStreamSource
,Resource
public interface EncodedResource extends Resource
Interface for a resource descriptor that describes the encoding applied to the entire resource content.This information is required if the client consuming that resource needs additional decoding capabilities to retrieve the resource's content.
- 从以下版本开始:
- 4.1
- 作者:
- Jeremy Grelle
- 另请参阅:
- HTTP/1.1: Semantics and Content, section 3.1.2.2
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
getContentEncoding()
The content coding value, as defined in the IANA registry从接口继承的方法 org.springframework.core.io.InputStreamSource
getInputStream
从接口继承的方法 org.springframework.core.io.Resource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
方法详细资料
getContentEncoding
String getContentEncoding()
The content coding value, as defined in the IANA registry- 返回:
- the content encoding
- 另请参阅:
- HTTP/1.1: Semantics and Content, section 3.1.2.1