public class DataOutputStreamLI extends FilterOutputStream implements DataOutputExt
Equivalent of DataOutputStream to write in little endian order (i.e Least Significant Byte first)
out
Constructor and Description |
---|
DataOutputStreamLI(OutputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
writeASCII(String s)
Writes a 0 terminated ASCII string to stream
|
void |
writeBoolean(boolean v) |
void |
writeByte(byte v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int c) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeShort(short v) |
void |
writeUnsignedByte(short v)
Writes the lowest significant byte of the given
short value as an unsigned byte
|
void |
writeUnsignedInt(long v)
Writes the 4 lowest significant bytes of the given
long value as an unsigned int
|
void |
writeUnsignedLong(long v)
Writes long value as unsigned.
|
void |
writeUnsignedShort(int v)
Writes the 2 lowest significant bytes of the given
int value as an unsigned short
|
void |
writeUTF(String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, flush
write, write, write
public DataOutputStreamLI(OutputStream is)
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeByte(byte v) throws IOException
IOException
public void writeByte(int v) throws IOException
writeByte
in interface DataOutput
IOException
public void writeUnsignedByte(short v) throws IOException
DataOutputExt
writeUnsignedByte
in interface DataOutputExt
IOException
public void writeShort(int v) throws IOException
writeShort
in interface DataOutput
IOException
public void writeShort(short v) throws IOException
IOException
public void writeUnsignedShort(int v) throws IOException
DataOutputExt
writeUnsignedShort
in interface DataOutputExt
IOException
public void writeInt(int v) throws IOException
writeInt
in interface DataOutput
IOException
public void writeUnsignedInt(long v) throws IOException
DataOutputExt
writeUnsignedInt
in interface DataOutputExt
IOException
public void writeLong(long v) throws IOException
writeLong
in interface DataOutput
IOException
public void writeUnsignedLong(long v) throws IOException
DataOutputExt
writeUnsignedLong
in interface DataOutputExt
IOException
public void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeChar(int c) throws IOException
writeChar
in interface DataOutput
IOException
public void writeASCII(String s) throws IOException
DataOutputExt
writeASCII
in interface DataOutputExt
IOException
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.