public interface BufferedReaderFactory
BufferedReader
allowing
customisation of the standard behaviour of the java.io
variety.Modifier and Type | Method and Description |
---|---|
java.io.BufferedReader |
create(org.springframework.core.io.Resource resource,
java.lang.String encoding)
Create a
BufferedReader for reading String items from the
provided resource. |
java.io.BufferedReader create(org.springframework.core.io.Resource resource, java.lang.String encoding) throws java.io.UnsupportedEncodingException, java.io.IOException
BufferedReader
for reading String items from the
provided resource.resource
- a Resource
containing the data to be readencoding
- the encoding required for converting binary data to
StringBufferedReader
java.io.UnsupportedEncodingException
- if the encoding is not supported by
the platformjava.io.IOException
- if there is a problem creating the reader