Package org.jibx.runtime.impl
Class InputStreamWrapper.WrappedStreamUTF8Reader
- java.lang.Object
-
- java.io.Reader
-
- org.jibx.runtime.impl.InputStreamWrapper.WrappedStreamUTF8Reader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
- Enclosing class:
- InputStreamWrapper
private class InputStreamWrapper.WrappedStreamUTF8Reader extends java.io.Reader
Reader for input stream using UTF-8 encoding. This uses the enclosing class to buffer input from the stream, interpreting it as characters on demand.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WrappedStreamUTF8Reader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(char[] b)
int
read(char[] b, int off, int len)
boolean
ready()
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] b, int off, int len) throws java.io.IOException
- Specified by:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read(char[] b) throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
ready
public boolean ready() throws java.io.IOException
- Overrides:
ready
in classjava.io.Reader
- Throws:
java.io.IOException
-
-