I would like to convert an integer array in java, to an Inputstream, after that I would like to use the stream of bytes to be decompressed using LZMA library.
int [] header = new int[copy.length];
edu.coeia.Compression.LZMA.Decoder decoder = new edu.coeia.Compression.LZMA.Decoder();
ByteArrayInputStream bStream = new ByteArrayInputStream(bheader);
bStream.coder(// InputSream of bytes);
What you need to do is convert the array of integers into an equivalent array of bytes, and then use the
ByteArrayInputStream(byte[])constructor to create the input stream. Finally, decode the stream using the code that you already have.The first step (conversion) is probably the one that you are having difficulty with, but the code depends on how the bytes are represented in the integer array.