Object
InputStream
XInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Creates an
InputStream
from different types of inputs.-
Method Summary
Modifier and TypeMethodDescriptionstatic XInputStream
InputStream
of string.static XInputStream
InputStream
of list of integers.static XInputStream
ofHexString
(String hex) InputStream
of HEX string.int
read()
Methods inherited from class InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
of
InputStream
of list of integers. -
of
InputStream
of string. -
ofHexString
InputStream
of 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")
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-