js.tinyvm.io
Class LEByteWriter

java.lang.Object
  extended by js.tinyvm.io.ByteWriter
      extended by 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)
           
 
Method Summary
 void writeU1(int aByte)
           
 void writeU2(int aShort)
           
 void writeU4(int aInt)
           
 void writeU8(long aLong)
           
 
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
 

Constructor Detail

LEByteWriter

public LEByteWriter(java.io.OutputStream stream)
Method Detail

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