@Test public void writeINT64() throws IOException { INT64 int64 = INT64.MAX_VALUE; byte[] expected = int64.bytes(); pos.write(int64); byte[] actual = baos.toByteArray(); assertThat(actual, is(expected)); }
public void write(PtpInteger integer) throws IOException { write(integer.bytes()); }
PtpOutputStream extends OutputStream { public void write(PtpInteger integer) throws IOException { write(integer.bytes()); } }
PtpOutputStream extends OutputStream { public void write(PtpInteger integer) throws IOException { write(integer.bytes()); } PtpOutputStream(OutputStream out); }
PtpOutputStream extends OutputStream { public void write(PtpInteger integer) throws IOException { write(integer.bytes()); } PtpOutputStream(OutputStream out); void write(PtpInteger integer); void write(List<? extends PtpInteger> aint); void write(String str); @Override void write(int b); @Override void write(byte[] b); @Override void write(byte[] b, int off, int len); @Override void flush(); @Override void close(); }
PtpOutputStream extends OutputStream { public void write(PtpInteger integer) throws IOException { write(integer.bytes()); } PtpOutputStream(OutputStream out); void write(PtpInteger integer); void write(List<? extends PtpInteger> aint); void write(String str); @Override void write(int b); @Override void write(byte[] b); @Override void write(byte[] b, int off, int len); @Override void flush(); @Override void close();  }