Package com.pnfsoftware.jeb.util.io
Class LEDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.pnfsoftware.jeb.util.io.LEDataOutputStream
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,AutoCloseable
Little-endian version of a
DataOutputStream
.-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
size()
void
write
(byte[] b, int off, int len) void
writeBoolean
(boolean v) void
writeByte
(int v) void
writeBytes
(String s) Deprecated.void
writeChar
(int v) void
writeChars
(String s) void
writeDouble
(double v) void
writeFloat
(float v) void
writeInt
(int v) void
writeIntULEB128
(int v) void
writeLong
(long v) void
writeLongULEB128
(long v) void
writeShort
(int v) void
Note: the string counter is stored in big-endian.Methods inherited from class java.io.FilterOutputStream
flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataOutput
write, write
-
Constructor Details
-
LEDataOutputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
size
public int size() -
write
- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Throws:
IOException
-
writeBytes
Deprecated.Danger: not portable! Uses local system encoding.- Specified by:
writeBytes
in interfaceDataOutput
- Throws:
IOException
-
writeUTF
Note: the string counter is stored in big-endian.- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Throws:
IOException
-
writeIntULEB128
- Throws:
IOException
-
writeLongULEB128
- Throws:
IOException
-