2
我想將java中的整數數組轉換爲InputStream,之後我想使用LZMA庫解壓縮字節流。如何將整數數組轉換爲InputStream?
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);
'header'數組中值的範圍是多少?每個條目是否包含一個字節的數據或四個字節的數據? –
爲什麼數據是作爲一個整數數組提供的,而不是字節? – EJP
@ A.H。標題中的值範圍爲0到247字節。是的每個條目都有一個字節的數據。 –