Package org.hibernate.internal.util
Class ReaderInputStream
java.lang.Object
java.io.InputStream
org.hibernate.internal.util.ReaderInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Exposes a
Reader
as an InputStream
.-
Constructor Summary
ConstructorsConstructorDescriptionReaderInputStream
(Reader reader) Constructs a ReaderInputStream from a Reader -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ReaderInputStream
Constructs a ReaderInputStream from a Reader- Parameters:
reader
- The reader to expose as an InputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-