Package ball.io
Class UnicodeReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.BufferedReader
-
- java.io.LineNumberReader
-
- ball.io.UnicodeReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
public class UnicodeReader extends LineNumberReader
BufferedReader
implementation which analyzes the underlyingInputStream
for byte order marks and selects the appropriateCharset
.- Author:
- Allen D. Ball
- See Also:
BOMCharsetMap
-
-
Constructor Summary
Constructors Constructor Description UnicodeReader(File file)
UnicodeReader(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class java.io.LineNumberReader
getLineNumber, mark, read, read, readLine, reset, setLineNumber, skip
-
Methods inherited from class java.io.BufferedReader
close, lines, markSupported, ready
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
UnicodeReader
public UnicodeReader(File file) throws FileNotFoundException
- Parameters:
file
- TheFile
to open.- Throws:
FileNotFoundException
- If theFile
is not found.
-
UnicodeReader
public UnicodeReader(InputStream in)
- Parameters:
in
- The underlyingInputStream
.
-
-