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
BufferedReaderimplementation which analyzes the underlyingInputStreamfor 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 StringtoString()-
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- TheFileto open.- Throws:
FileNotFoundException- If theFileis not found.
-
UnicodeReader
public UnicodeReader(InputStream in)
- Parameters:
in- The underlyingInputStream.
-
-