org.springframework.batch.item.file
Class DefaultBufferedReaderFactory
java.lang.Object
org.springframework.batch.item.file.DefaultBufferedReaderFactory
- All Implemented Interfaces:
- BufferedReaderFactory
public class DefaultBufferedReaderFactory
- extends Object
- implements BufferedReaderFactory
- Since:
- 2.1
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBufferedReaderFactory
public DefaultBufferedReaderFactory()
create
public BufferedReader create(Resource resource,
String encoding)
throws UnsupportedEncodingException,
IOException
- Description copied from interface:
BufferedReaderFactory
- Create a
BufferedReader
for reading String items from the
provided resource.
- Specified by:
create
in interface BufferedReaderFactory
- 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.