Package 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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BufferedReader`
  `create(org.springframework.core.io.Resource resource, String encoding)`
  Create a `BufferedReader` for reading String items from the provided resource.

- ## Method Details

  - ### create

    BufferedReader create(org.springframework.core.io.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 read
      `encoding` - 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