public class IntegerArrayInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private int[] |
array
Array to read
|
private int[] |
bytes
Temporary bytes to read
|
private int |
index
Read index in array
|
private int |
length
Array size
|
private int |
read
Read index in temporary bytes
|
| Constructor and Description |
|---|
IntegerArrayInputStream(int[] array)
Constructs IntegerArrayInputStream
|
private int[] array
private int[] bytes
private int index
private final int length
private int read
public IntegerArrayInputStream(int[] array)
array - Array to readpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException - On close problemInputStream.close()public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - On read problemInputStream.read()