nwnintf.format.itp
Class ItpStream

java.lang.Object
  |
  +--nwnintf.format.itp.ItpStream

public class ItpStream
extends java.lang.Object

Can't implement DataOutput because that interface specifies MSB byte order. I only defined ItpStream because I need to write in LSB.


Constructor Summary
ItpStream(java.io.OutputStream os)
           
 
Method Summary
 void flush()
           
 int size()
          Return the number of bytes written to the underlying stream by this ItpStream instance.
 void writeByte(int x)
           
 void writeBytes(byte[] b)
           
 void writeBytes(java.lang.String s)
          Write the low byte of each character of s to the underlying stream.
 void writeDouble(double x)
          Write a double in LSB order.
 void writeInt(int x)
          Write an int in LSB order to the underlying stream.
 void writeLong(long x)
          Write a long in LSB order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItpStream

public ItpStream(java.io.OutputStream os)
Method Detail

writeInt

public void writeInt(int x)
              throws java.io.IOException
Write an int in LSB order to the underlying stream.

java.io.IOException

writeByte

public void writeByte(int x)
               throws java.io.IOException
java.io.IOException

writeBytes

public void writeBytes(java.lang.String s)
                throws java.io.IOException
Write the low byte of each character of s to the underlying stream.

java.io.IOException

writeDouble

public void writeDouble(double x)
                 throws java.io.IOException
Write a double in LSB order.

java.io.IOException

writeLong

public void writeLong(long x)
               throws java.io.IOException
Write a long in LSB order.

java.io.IOException

flush

public void flush()
           throws java.io.IOException
java.io.IOException

writeBytes

public void writeBytes(byte[] b)
                throws java.io.IOException
java.io.IOException

size

public int size()
Return the number of bytes written to the underlying stream by this ItpStream instance.