Package org.hibernate.engine.jdbc
Class ReaderInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.hibernate.engine.jdbc.ReaderInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ReaderInputStream extends InputStream
Exposes aReader
as anInputStream
.
-
-
Constructor Summary
Constructors Constructor Description ReaderInputStream(Reader reader)
Constructs a ReaderInputStream from a Reader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
ReaderInputStream
public ReaderInputStream(Reader reader)
Constructs a ReaderInputStream from a Reader- Parameters:
reader
- The reader to expose as an InputStream
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
-