Package utils
Class ReaderInputStream
java.lang.Object
java.io.InputStream
utils.ReaderInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
This class is the opposite of
java.io.InputStreamReader: it
provides a bridge from (new) character streams (Reader) to (old)
byte streams (InputStream). It reads characters and converts them
into bytes.- Author:
- Dirk Moebius
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
reader
-
-
Constructor Details
-
ReaderInputStream
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readAheadLimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-