class CeosFileReader {

    public int[] readInArray(final int arraySize, final int intValLength) throws IOException, IllegalCeosFormatException {
        final long streamPosition = stream.getStreamPosition();
        final int[] ints = new int[arraySize];
        for (int i = 0; i < ints.length; i++) {
            final String integerString = readAn(intValLength).trim();
            if (integerString.length() > 0) {
                ints[i] = (int) parseLong(integerString, streamPosition + i * intValLength);
            }
        }
        return ints;
    }

    public  CeosFileReader(final ImageInputStream stream);

}