Package org.apache.camel.util
Class IOHelper.EncodingFileReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
org.apache.camel.util.IOHelper.EncodingFileReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
- Enclosing class:
IOHelper
Encoding-aware file reader.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEncodingFileReader
(FileInputStream in, String charset) EncodingFileReader
(FileInputStream in, Charset charset) -
Method Summary
Methods inherited from class java.io.InputStreamReader
getEncoding, read, read, read, ready
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, reset, skip, transferTo
-
Constructor Details
-
EncodingFileReader
- Parameters:
in
- file to readcharset
- character set to use- Throws:
UnsupportedEncodingException
-
EncodingFileReader
- Parameters:
in
- file to readcharset
- character set to use
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStreamReader
- Throws:
IOException
-