@Test public void readEmpty() throws IOException { byte[] given = UINT32.ZERO.bytes(); List<INT16> expected = new ArrayList<>(); InputStream givenInputStream = new ByteArrayInputStream(given); List<INT16> actual = AINT16.read(givenInputStream); assertThat(actual, is(expected)); }
public static List<INT16> read(InputStream is) throws IOException { Validators.notNull("is", is); long length = UINT32.read(is).longValue(); List<INT16> list = new ArrayList<>((int) length); for (int i = 0; i < length; i++) { list.add(INT16.read(is)); } return list; }
AINT16 { public static List<INT16> read(InputStream is) throws IOException { Validators.notNull("is", is); long length = UINT32.read(is).longValue(); List<INT16> list = new ArrayList<>((int) length); for (int i = 0; i < length; i++) { list.add(INT16.read(is)); } return list; } }
AINT16 { public static List<INT16> read(InputStream is) throws IOException { Validators.notNull("is", is); long length = UINT32.read(is).longValue(); List<INT16> list = new ArrayList<>((int) length); for (int i = 0; i < length; i++) { list.add(INT16.read(is)); } return list; } private  AINT16(); }
AINT16 { public static List<INT16> read(InputStream is) throws IOException { Validators.notNull("is", is); long length = UINT32.read(is).longValue(); List<INT16> list = new ArrayList<>((int) length); for (int i = 0; i < length; i++) { list.add(INT16.read(is)); } return list; } private  AINT16(); static List<INT16> read(InputStream is); }
AINT16 { public static List<INT16> read(InputStream is) throws IOException { Validators.notNull("is", is); long length = UINT32.read(is).longValue(); List<INT16> list = new ArrayList<>((int) length); for (int i = 0; i < length; i++) { list.add(INT16.read(is)); } return list; } private  AINT16(); static List<INT16> read(InputStream is);  }