public class CramArray
extends java.lang.Object
Constructor and Description |
---|
CramArray() |
Modifier and Type | Method and Description |
---|---|
static int[] |
array(java.io.InputStream inputStream)
Read CRAM int array from a
InputStream . |
static int |
write(int[] array,
java.io.OutputStream outputStream)
Write CRAM int array to a
OutputStream . |
public static int[] array(java.io.InputStream inputStream) throws java.io.IOException
InputStream
.inputStream
- the inputs stream to read fromjava.io.IOException
- as per java IO contractpublic static int write(int[] array, java.io.OutputStream outputStream) throws java.io.IOException
OutputStream
.array
- the array to be writtenoutputStream
- the output stream to write tojava.io.IOException
- as per java IO contract