public final class LittleEndianOutputStream extends java.io.FilterOutputStream implements LittleEndianOutput
Constructor and Description |
---|
LittleEndianOutputStream(java.io.OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
putUShort(int value)
Put unsigned short into output stream
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
writeByte(int v) |
void |
writeDouble(double v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUInt(long value)
Put unsigned int into output stream
|
public LittleEndianOutputStream(java.io.OutputStream out)
public void writeByte(int v)
writeByte
in interface LittleEndianOutput
public void writeDouble(double v)
writeDouble
in interface LittleEndianOutput
public void writeInt(int v)
writeInt
in interface LittleEndianOutput
public void writeLong(long v)
writeLong
in interface LittleEndianOutput
public void writeShort(int v)
writeShort
in interface LittleEndianOutput
public void write(byte[] b)
write
in interface LittleEndianOutput
write
in class java.io.FilterOutputStream
public void write(byte[] b, int off, int len)
write
in interface LittleEndianOutput
write
in class java.io.FilterOutputStream
public void writeUInt(long value)
value
- the int (32-bit) valuepublic void putUShort(int value)
value
- the unsigned short (16-bit) valueCopyright 2020 The Apache Software Foundation or its licensors, as applicable.