Package org.apache.poi.util
Class LittleEndianOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.poi.util.LittleEndianOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,LittleEndianOutput
public final class LittleEndianOutputStream extends FilterOutputStream implements LittleEndianOutput
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description LittleEndianOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
putUShort(int value)
Put unsigned short into output streamvoid
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-
Methods inherited from class java.io.FilterOutputStream
close, flush, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
LittleEndianOutputStream
public LittleEndianOutputStream(OutputStream out)
-
-
Method Detail
-
writeByte
public void writeByte(int v)
- Specified by:
writeByte
in interfaceLittleEndianOutput
-
writeDouble
public void writeDouble(double v)
- Specified by:
writeDouble
in interfaceLittleEndianOutput
-
writeInt
public void writeInt(int v)
- Specified by:
writeInt
in interfaceLittleEndianOutput
-
writeLong
public void writeLong(long v)
- Specified by:
writeLong
in interfaceLittleEndianOutput
-
writeShort
public void writeShort(int v)
- Specified by:
writeShort
in interfaceLittleEndianOutput
-
write
public void write(byte[] b)
- Specified by:
write
in interfaceLittleEndianOutput
- Overrides:
write
in classFilterOutputStream
-
write
public void write(byte[] b, int off, int len)
- Specified by:
write
in interfaceLittleEndianOutput
- Overrides:
write
in classFilterOutputStream
-
writeUInt
public void writeUInt(long value)
Put unsigned int into output stream- Parameters:
value
- the int (32-bit) value
-
putUShort
public void putUShort(int value)
Put unsigned short into output stream- Parameters:
value
- the unsigned short (16-bit) value
-
-