Class DefaultBufferedReaderFactory
java.lang.Object
org.springframework.batch.item.file.DefaultBufferedReaderFactory
- All Implemented Interfaces:
 BufferedReaderFactory
- Since:
 - 2.1
 - Author:
 - Dave Syer, Mahmoud Ben Hassine
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionCreate aBufferedReaderfor reading String items from the provided resource. 
- 
Constructor Details
- 
DefaultBufferedReaderFactory
public DefaultBufferedReaderFactory() 
 - 
 - 
Method Details
- 
create
public BufferedReader create(org.springframework.core.io.Resource resource, String encoding) throws IOException Description copied from interface:BufferedReaderFactoryCreate aBufferedReaderfor reading String items from the provided resource.- Specified by:
 createin interfaceBufferedReaderFactory- 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
 
 -