@Beta public class LittleEndianDataOutputStream extends FilterOutputStream implements DataOutput
DataOutput that uses little-endian byte ordering
 for writing char, short, int, float, double, and long values.
 
 Note: This class intentionally violates the specification of its
 supertype DataOutput, which explicitly requires big-endian byte
 order.
out| Constructor and Description | 
|---|
| LittleEndianDataOutputStream(OutputStream out)Creates a  LittleEndianDataOutputStreamthat wraps the given stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| void | write(byte[] b,
          int off,
          int len) | 
| void | writeBoolean(boolean v) | 
| void | writeByte(int v) | 
| void | writeBytes(String s)Deprecated. 
 The semantics of  writeBytes(String s)are considered
             dangerous. Please usewriteUTF(String s),writeChars(String s)or another write method instead. | 
| void | writeChar(int v)Writes a char as specified by  DataOutputStream.writeChar(int),
 except using little-endian byte order. | 
| void | writeChars(String s)Writes a  Stringas specified byDataOutputStream.writeChars(String), except each character is
 written using little-endian byte order. | 
| void | writeDouble(double v)Writes a  doubleas specified byDataOutputStream.writeDouble(double), except using little-endian
 byte order. | 
| void | writeFloat(float v)Writes a  floatas specified byDataOutputStream.writeFloat(float), except using little-endian byte
 order. | 
| void | writeInt(int v)Writes an  intas specified byDataOutputStream.writeInt(int), except using little-endian byte
 order. | 
| void | writeLong(long v)Writes a  longas specified byDataOutputStream.writeLong(long), except using little-endian byte
 order. | 
| void | writeShort(int v)Writes a  shortas specified byDataOutputStream.writeShort(int), except using little-endian byte
 order. | 
| void | writeUTF(String str) | 
flush, write, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrite, writepublic LittleEndianDataOutputStream(OutputStream out)
LittleEndianDataOutputStream that wraps the given stream.out - the stream to delegate topublic void write(byte[] b, int off, int len) throws IOException
write in interface DataOutputwrite in class FilterOutputStreamIOExceptionpublic void writeBoolean(boolean v) throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v) throws IOException
writeByte in interface DataOutputIOException@Deprecated public void writeBytes(String s) throws IOException
writeBytes(String s) are considered
             dangerous. Please use writeUTF(String s),
             writeChars(String s) or another write method instead.writeBytes in interface DataOutputIOExceptionpublic void writeChar(int v) throws IOException
DataOutputStream.writeChar(int),
 except using little-endian byte order.writeChar in interface DataOutputIOException - if an I/O error occurspublic void writeChars(String s) throws IOException
String as specified by
 DataOutputStream.writeChars(String), except each character is
 written using little-endian byte order.writeChars in interface DataOutputIOException - if an I/O error occurspublic void writeDouble(double v) throws IOException
double as specified by
 DataOutputStream.writeDouble(double), except using little-endian
 byte order.writeDouble in interface DataOutputIOException - if an I/O error occurspublic void writeFloat(float v) throws IOException
float as specified by
 DataOutputStream.writeFloat(float), except using little-endian byte
 order.writeFloat in interface DataOutputIOException - if an I/O error occurspublic void writeInt(int v) throws IOException
int as specified by
 DataOutputStream.writeInt(int), except using little-endian byte
 order.writeInt in interface DataOutputIOException - if an I/O error occurspublic void writeLong(long v) throws IOException
long as specified by
 DataOutputStream.writeLong(long), except using little-endian byte
 order.writeLong in interface DataOutputIOException - if an I/O error occurspublic void writeShort(int v) throws IOException
short as specified by
 DataOutputStream.writeShort(int), except using little-endian byte
 order.writeShort in interface DataOutputIOException - if an I/O error occurspublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2010-2015. All Rights Reserved.