Example usage for Java org.springframework.core.io.support EncodedResource fields, constructors, methods, implement or subclass
The text is from its open source code.
EncodedResource(Resource resource, @Nullable String encoding) Create a new EncodedResource for the given Resource , using the specified encoding . | |
EncodedResource(Resource resource, @Nullable Charset charset) Create a new EncodedResource for the given Resource , using the specified Charset . | |
EncodedResource(Resource resource) Create a new EncodedResource for the given Resource , not specifying an explicit encoding or Charset . |
String | getEncoding() Return the encoding to use for reading from the #getResource() resource , or null if none specified. |
InputStream | getInputStream() Open an InputStream for the specified resource, ignoring any specified #getCharset() Charset or #getEncoding() encoding . |
Reader | getReader() Open a java.io.Reader for the specified resource, using the specified #getCharset() Charset or #getEncoding() encoding (if any). |
Resource | getResource() Return the Resource held by this EncodedResource . |
boolean | requiresReader() Determine whether a Reader is required as opposed to an InputStream , i.e. |
String | toString() |