com.continuent.tungsten.replicator.extractor.mysql.conversion
Class LittleEndianConversion

java.lang.Object
  extended by com.continuent.tungsten.replicator.extractor.mysql.conversion.GeneralConversion
      extended by com.continuent.tungsten.replicator.extractor.mysql.conversion.LittleEndianConversion

public class LittleEndianConversion
extends GeneralConversion

Version:
1.0
Author:
Stephane Giron

Constructor Summary
LittleEndianConversion()
           
 
Method Summary
static int convert1ByteToInt(byte[] buffer, int offset)
           
static int convert2BytesToInt(byte[] buffer, int offset)
           
static int convert3BytesToInt(byte[] buffer, int offset)
           
static int convert4BytesToInt(byte[] buffer, int offset)
           
static long convert4BytesToLong(byte[] buffer, int offset)
           
static long convert6BytesToLong(byte[] buffer, int offset)
           
static long convert8BytesToLong_2(byte[] buffer, int offset)
           
static long convert8BytesToLong(byte[] buffer, int offset)
           
static long convertNBytesToLong_2(byte[] buf, int off, int len)
           
static long convertSignedNBytesToLong(byte[] buffer, int offset, int length)
           
 
Methods inherited from class com.continuent.tungsten.replicator.extractor.mysql.conversion.GeneralConversion
unsignedByteToInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LittleEndianConversion

public LittleEndianConversion()
Method Detail

convert1ByteToInt

public static int convert1ByteToInt(byte[] buffer,
                                    int offset)
                             throws java.io.IOException
Throws:
java.io.IOException

convert2BytesToInt

public static int convert2BytesToInt(byte[] buffer,
                                     int offset)
                              throws java.io.IOException
Throws:
java.io.IOException

convert3BytesToInt

public static int convert3BytesToInt(byte[] buffer,
                                     int offset)
                              throws java.io.IOException
Throws:
java.io.IOException

convert4BytesToInt

public static int convert4BytesToInt(byte[] buffer,
                                     int offset)
                              throws java.io.IOException
Throws:
java.io.IOException

convertSignedNBytesToLong

public static long convertSignedNBytesToLong(byte[] buffer,
                                             int offset,
                                             int length)

convert4BytesToLong

public static long convert4BytesToLong(byte[] buffer,
                                       int offset)
                                throws java.io.IOException
Throws:
java.io.IOException

convert6BytesToLong

public static long convert6BytesToLong(byte[] buffer,
                                       int offset)
                                throws java.io.IOException
Throws:
java.io.IOException

convert8BytesToLong

public static long convert8BytesToLong(byte[] buffer,
                                       int offset)
                                throws java.io.IOException
Throws:
java.io.IOException

convert8BytesToLong_2

public static long convert8BytesToLong_2(byte[] buffer,
                                         int offset)

convertNBytesToLong_2

public static long convertNBytesToLong_2(byte[] buf,
                                         int off,
                                         int len)