Interface BufferedReaderFactory
- All Known Implementing Classes:
DefaultBufferedReaderFactory
,SimpleBinaryBufferedReaderFactory
public interface BufferedReaderFactory
A factory strategy for custom extensions ofBufferedReader
allowing customisation of the standard behaviour of thejava.io
variety.- Since:
- 2.1
- Author:
- Dave Syer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.BufferedReader
create(org.springframework.core.io.Resource resource, java.lang.String encoding)
Create aBufferedReader
for reading String items from the provided resource.
Method Detail
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.- Parameters:
resource
- aResource
containing the data to be readencoding
- the encoding required for converting binary data to String- Returns:
- a
BufferedReader
- Throws:
java.io.UnsupportedEncodingException
- if the encoding is not supported by the platformjava.io.IOException
- if there is a problem creating the reader