Class DefaultBufferedReaderFactory
java.lang.Object
org.springframework.batch.item.file.DefaultBufferedReaderFactory
- All Implemented Interfaces:
BufferedReaderFactory
- Since:
- 2.1
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate aBufferedReader
for 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 UnsupportedEncodingException, IOException Description copied from interface:BufferedReaderFactory
Create aBufferedReader
for reading String items from the provided resource.- Specified by:
create
in interfaceBufferedReaderFactory
- Parameters:
resource
- aResource
containing 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
-