org.springframework.batch.item.file
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
create
BufferedReader create(Resource resource,
String encoding)
throws UnsupportedEncodingException,
IOException
- Create a
BufferedReader
for reading String items from the
provided resource.
- Parameters:
resource
- a Resource
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 platform
IOException
- if there is a problem creating the reader
Copyright © 2013 SpringSource. All Rights Reserved.