js.tinyvm.io
Class LEByteWriter
java.lang.Object
js.tinyvm.io.ByteWriter
js.tinyvm.io.LEByteWriter
- All Implemented Interfaces:
- IByteWriter
public class LEByteWriter
- extends ByteWriter
Writes lo-byte first, hi-byte last. In longs, hi-word goes first, but each
word is written as though with writeU4.
Constructor Summary |
LEByteWriter(java.io.OutputStream stream)
|
Methods inherited from class js.tinyvm.io.ByteWriter |
offset, write, write, writeBoolean, writeByte, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEByteWriter
public LEByteWriter(java.io.OutputStream stream)
writeU1
public void writeU1(int aByte)
throws java.io.IOException
- Throws:
java.io.IOException
writeU2
public void writeU2(int aShort)
throws java.io.IOException
- Throws:
java.io.IOException
writeU4
public void writeU4(int aInt)
throws java.io.IOException
- Throws:
java.io.IOException
writeU8
public void writeU8(long aLong)
throws java.io.IOException
- Throws:
java.io.IOException