@Test public void readINT16() throws IOException { INT16 given = INT16.MAX_VALUE; InputStream givenInputStream = new ByteArrayInputStream(given.bytes()); PtpInputStream pis = new PtpInputStream(givenInputStream); INT16 actual = pis.readINT16(); assertThat(actual, is(given)); }
public INT16 readINT16() throws IOException { return INT16.read(in); }
PtpInputStream extends InputStream { public INT16 readINT16() throws IOException { return INT16.read(in); } }
PtpInputStream extends InputStream { public INT16 readINT16() throws IOException { return INT16.read(in); } PtpInputStream(InputStream in); }
PtpInputStream extends InputStream { public INT16 readINT16() throws IOException { return INT16.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 INT16 readINT16() throws IOException { return INT16.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();  }