Class DefaultBufferedReaderFactory
- java.lang.Object
- org.springframework.batch.item.file.DefaultBufferedReaderFactory
- All Implemented Interfaces:
BufferedReaderFactory
public class DefaultBufferedReaderFactory extends java.lang.Object implements BufferedReaderFactory
- Since:
- 2.1
- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description DefaultBufferedReaderFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.BufferedReadercreate(org.springframework.core.io.Resource resource, java.lang.String encoding)Create aBufferedReaderfor reading String items from the provided resource.
Method Detail
create
public java.io.BufferedReader create(org.springframework.core.io.Resource resource, java.lang.String encoding) throws java.io.UnsupportedEncodingException, java.io.IOExceptionDescription 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:
java.io.UnsupportedEncodingException- if the encoding is not supported by the platformjava.io.IOException- if there is a problem creating the reader