@Test public void readAINT16() throws IOException { byte[] given = ArrayUtils.join( new UINT32(3).bytes(), INT16.MAX_VALUE.bytes(), INT16.MAX_VALUE.bytes(), INT16.MAX_VALUE.bytes() ); List<INT16> expected = new ArrayList<>(); expected.add(INT16.MAX_VALUE); expected.add(INT16.MAX_VALUE); expected.add(INT16.MAX_VALUE); InputStream givenInputStream = new ByteArrayInputStream(given); PtpInputStream pis = new PtpInputStream(givenInputStream); List<INT16> actual = pis.readAINT16(); assertThat(actual, is(expected)); }
public List<INT16> readAINT16() throws IOException { return AINT16.read(in); }
PtpInputStream extends InputStream { public List<INT16> readAINT16() throws IOException { return AINT16.read(in); } }
PtpInputStream extends InputStream { public List<INT16> readAINT16() throws IOException { return AINT16.read(in); } PtpInputStream(InputStream in); }
PtpInputStream extends InputStream { public List<INT16> readAINT16() throws IOException { return AINT16.read(in); } PtpInputStream(InputStream in); INT8 readINT8(); UINT8 readUINT8(); INT16 readINT16(); UINT16 readUINT16(); INT32 readINT32(); UINT32 readUINT32(); INT64 readINT64(); UINT64 readUINT64(); INT128 readINT128(); UINT128 readUINT128(); List<INT8> readAINT8(); List<UINT8> readAUINT8(); List<INT16> readAINT16(); List<UINT16> readAUINT16(); List<INT32> readAINT32(); List<UINT32> readAUINT32(); List<INT64> readAINT64(); List<UINT64> readAUINT64(); List<INT128> readAINT128(); List<UINT128> readAUINT128(); String readString(); Object readAs(DataType dataType); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override void mark(int readlimit); @Override void reset(); @Override boolean markSupported(); }
PtpInputStream extends InputStream { public List<INT16> readAINT16() throws IOException { return AINT16.read(in); } PtpInputStream(InputStream in); INT8 readINT8(); UINT8 readUINT8(); INT16 readINT16(); UINT16 readUINT16(); INT32 readINT32(); UINT32 readUINT32(); INT64 readINT64(); UINT64 readUINT64(); INT128 readINT128(); UINT128 readUINT128(); List<INT8> readAINT8(); List<UINT8> readAUINT8(); List<INT16> readAINT16(); List<UINT16> readAUINT16(); List<INT32> readAINT32(); List<UINT32> readAUINT32(); List<INT64> readAINT64(); List<UINT64> readAUINT64(); List<INT128> readAINT128(); List<UINT128> readAUINT128(); String readString(); Object readAs(DataType dataType); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override void mark(int readlimit); @Override void reset(); @Override boolean markSupported();  }