Interface BufferedReaderFactory
- All Known Implementing Classes:
DefaultBufferedReaderFactory,SimpleBinaryBufferedReaderFactory
public interface BufferedReaderFactory
A factory strategy for custom extensions of
BufferedReader allowing
customisation of the standard behaviour of the java.io variety.- Since:
- 2.1
- Author:
- Dave Syer
-
Method Summary
Modifier and TypeMethodDescriptionCreate aBufferedReaderfor reading String items from the provided resource.
-
Method Details
-
create
BufferedReader create(org.springframework.core.io.Resource resource, String encoding) throws UnsupportedEncodingException, IOException Create aBufferedReaderfor reading String items from the provided resource.- Parameters:
resource- aResourcecontaining the data to be readencoding- the encoding required for converting binary data to String- Returns:
- a
BufferedReader - Throws:
UnsupportedEncodingException- if the encoding is not supported by the platformIOException- if there is a problem creating the reader
-