Class UTF8Reader

java.lang.Object
java.io.Reader
de.tomatengames.util.io.UTF8Reader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class UTF8Reader extends Reader
A Reader that reads bytes from an InputStream and decodes them to characters using UTF-8.

This reader is unbuffered, except for surrogate characters. Each read operation may cause bytes to be read from the underlying InputStream.

This implementation supports mark(int) if and only if the underlying InputStream supports InputStream.mark(int).

Since:
1.7