com.metsci.glimpse.util.io
Class LittleEndianDataOutput

java.lang.Object
  extended by com.metsci.glimpse.util.io.LittleEndianDataOutput
All Implemented Interfaces:
java.io.DataOutput

public class LittleEndianDataOutput
extends java.lang.Object
implements java.io.DataOutput

LittleEndianDataInput is a wrapper around a DataOutput object that converts data from Java standard big-endian to little-endian before outputting it.

Author:
hogye

Constructor Summary
LittleEndianDataOutput(java.io.DataOutput out)
           
 
Method Summary
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 void writeBoolean(boolean arg0)
           
 void writeByte(int arg0)
           
 void writeBytes(java.lang.String arg0)
           
 void writeChar(int arg0)
           
 void writeChars(java.lang.String arg0)
           
 void writeDouble(double arg0)
           
 void writeFloat(float arg0)
           
 void writeInt(int arg0)
           
 void writeLong(long arg0)
           
 void writeShort(int arg0)
           
 void writeUTF(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LittleEndianDataOutput

public LittleEndianDataOutput(java.io.DataOutput out)
Method Detail

write

public void write(int arg0)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

public void write(byte[] arg0)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
           throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean arg0)
                  throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeByte

public void writeByte(int arg0)
               throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public void writeShort(int arg0)
                throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

public void writeChar(int arg0)
               throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

public void writeInt(int arg0)
              throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

public void writeLong(long arg0)
               throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

public void writeFloat(float arg0)
                throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

public void writeDouble(double arg0)
                 throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.lang.String arg0)
                throws java.io.IOException
Specified by:
writeBytes in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

public void writeChars(java.lang.String arg0)
                throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

public void writeUTF(java.lang.String arg0)
              throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException


Copyright © 2012 Metron, Inc.. All Rights Reserved.