Object
InputStream
XInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Creates an InputStream from different types of inputs.
-
Constructor Summary
ConstructorDescriptionXInputStream
(String hex) From HEX string.XInputStream
(List<Integer> output) From list of integers. -
Method Summary
Methods inherited from class InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
XInputStream
From list of integers. -
XInputStream
From HEX string.Each byte needs to be encoded with 2 symbols (padded with 0) and separated with comma.
Example:
new XInputStream("68, 65, 6c, 6c, 6f")
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-