接口 BufferedReaderFactory
public interface BufferedReaderFactory
A factory strategy for custom extensions ofBufferedReader
allowing customisation of the standard behaviour of thejava.io
variety.- 从以下版本开始:
- 2.1
- 作者:
- Dave Syer
方法详细资料
create
java.io.BufferedReader create(org.springframework.core.io.Resource resource, java.lang.String encoding) throws java.io.UnsupportedEncodingException, java.io.IOException
Create aBufferedReader
for reading String items from the provided resource.- 参数:
resource
- aResource
containing the data to be readencoding
- the encoding required for converting binary data to String- 返回:
- a
BufferedReader
- 抛出:
java.io.UnsupportedEncodingException
- if the encoding is not supported by the platformjava.io.IOException
- if there is a problem creating the reader