utilities
Class LittleEndianWriter

java.lang.Object
  |
  +--utilities.LittleEndianWriter

public class LittleEndianWriter
extends java.lang.Object


Constructor Summary
LittleEndianWriter(java.io.OutputStream out)
           
 
Method Summary
 void writeInt(int val)
          Flip from Little to Big Endian, and write the corresponding int.
 void writeRawBytes(byte[] buffer)
          Write a byte array as-is.
 void writeShort(short val)
          Flip from Little to Big Endian, and write the corresponding short.
 void writeString(java.lang.String val)
          Write the corresponding string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LittleEndianWriter

public LittleEndianWriter(java.io.OutputStream out)
Method Detail

writeInt

public void writeInt(int val)
              throws java.io.IOException
Flip from Little to Big Endian, and write the corresponding int.

writeShort

public void writeShort(short val)
                throws java.io.IOException
Flip from Little to Big Endian, and write the corresponding short.

writeString

public void writeString(java.lang.String val)
                 throws java.io.IOException
Write the corresponding string.

writeRawBytes

public void writeRawBytes(byte[] buffer)
                   throws java.io.IOException
Write a byte array as-is. That is, no conversion is done.