public int[] readAll() throws IOException { byte[] all = IOs.readAsByteArray(dis); return Bytes.toReducedBitIntArray( all, all.length, format.getBytePerSample(), format.getSampleSizeInBits(), format.isBigEndian()); }