Package htsjdk.samtools.cram.io
Class CramIntArray
java.lang.Object
htsjdk.samtools.cram.io.CramIntArray
Methods to read and write CRAM array of integers data type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]array(InputStream inputStream) Read CRAM int array from aInputStream.arrayAsList(InputStream inputStream) Read CRAM int array from aInputStreamas a List.static intwrite(int[] array, OutputStream outputStream) Write CRAM int array to aOutputStream.static intwrite(List<Integer> intList, OutputStream outputStream) Write CRAM int List to aOutputStream.
-
Constructor Details
-
CramIntArray
public CramIntArray()
-
-
Method Details
-
array
Read CRAM int array from aInputStream.- Parameters:
inputStream- the inputs stream to read from- Returns:
- array of integers from the input stream
-
arrayAsList
Read CRAM int array from aInputStreamas a List.- Parameters:
inputStream- the inputs stream to read from- Returns:
- List of integers from the input stream
-
write
Write CRAM int List to aOutputStream.- Parameters:
intList- the List to be writtenoutputStream- the output stream to write to- Returns:
- the number of bits written out
-
write
Write CRAM int array to aOutputStream.- Parameters:
array- the array to be writtenoutputStream- the output stream to write to- Returns:
- the number of bits written out
-