@Test public void testWrite() throws IOException { final ByteArrayOutputStream byteOut = new ByteArrayOutputStream(); final LittleEndianDataOutputStream littleEndianOut = new LittleEndianDataOutputStream(byteOut); final byte[] expected = randomUUID().toString().getBytes(); littleEndianOut.write(expected, 0, expected.length); littleEndianOut.close(); assertTrue(Arrays.equals(expected, byteOut.toByteArray())); }
@Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); }
LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); } }
LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); } LittleEndianDataOutputStream(OutputStream out); }
LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); } LittleEndianDataOutputStream(OutputStream out); @Override void write(byte[] b, int off, int len); @Override void writeBoolean(boolean v); @Override void writeByte(int v); @Override void writeShort(int v); @Override void writeChar(int v); @Override void writeInt(int v); @Override void writeLong(long v); @Override void writeFloat(float v); @Override void writeDouble(double v); @Override void writeBytes(String s); @Override void writeChars(String s); @Override void writeUTF(String str); @Override void close(); }
LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput { @Override public void write(byte[] b, int off, int len) throws IOException { out.write(b, off, len); } LittleEndianDataOutputStream(OutputStream out); @Override void write(byte[] b, int off, int len); @Override void writeBoolean(boolean v); @Override void writeByte(int v); @Override void writeShort(int v); @Override void writeChar(int v); @Override void writeInt(int v); @Override void writeLong(long v); @Override void writeFloat(float v); @Override void writeDouble(double v); @Override void writeBytes(String s); @Override void writeChars(String s); @Override void writeUTF(String str); @Override void close();  }