Module id.xfunction

Class XInputStream

Object
InputStream
XInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class XInputStream extends InputStream
Creates an InputStream from different types of inputs.
  • Constructor Details

    • XInputStream

      public XInputStream(List<Integer> output)
      From list of integers.
    • XInputStream

      public XInputStream(String hex)
      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