Java org.springframework.core.io.support EncodedResource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.io.support EncodedResource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.io.support EncodedResource.

The text is from its open source code.

Constructor

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 .

Method

StringgetEncoding()
Return the encoding to use for reading from the #getResource() resource , or null if none specified.
InputStreamgetInputStream()
Open an InputStream for the specified resource, ignoring any specified #getCharset() Charset or #getEncoding() encoding .
ReadergetReader()
Open a java.io.Reader for the specified resource, using the specified #getCharset() Charset or #getEncoding() encoding (if any).
ResourcegetResource()
Return the Resource held by this EncodedResource .
booleanrequiresReader()
Determine whether a Reader is required as opposed to an InputStream , i.e.
StringtoString()