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

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

public class BigEndianConversion
extends GeneralConversion

Version:
1.0
Author:
Stephane Giron

Constructor Summary
BigEndianConversion()
           
 
Method Summary
static int convert1ByteToInt(byte[] buffer, int offset)
           
static short convert1ByteToShort(byte[] buffer, int offset)
           
static int convert2BytesToInt(byte[] buffer, int offset)
           
static short convert2bytesToShort(byte[] buffer, int offset)
           
static int convert3BytesToInt(byte[] buffer, int offset)
           
static int convert4BytesToInt(byte[] buffer, int offset)
           
static int convertNBytesToInt(byte[] buffer, int offset, int length)
           
static long convertNBytesToLong(byte[] buffer, int offset, int length)
           
static java.lang.String convertNBytesToString(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

BigEndianConversion

public BigEndianConversion()
Method Detail

convertNBytesToInt

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

convertNBytesToString

public static java.lang.String convertNBytesToString(byte[] buffer,
                                                     int offset,
                                                     int length)

convert1ByteToInt

public static int convert1ByteToInt(byte[] buffer,
                                    int offset)

convert2BytesToInt

public static int convert2BytesToInt(byte[] buffer,
                                     int offset)

convert3BytesToInt

public static int convert3BytesToInt(byte[] buffer,
                                     int offset)

convert4BytesToInt

public static int convert4BytesToInt(byte[] buffer,
                                     int offset)

convertNBytesToLong

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

convert1ByteToShort

public static short convert1ByteToShort(byte[] buffer,
                                        int offset)

convert2bytesToShort

public static short convert2bytesToShort(byte[] buffer,
                                         int offset)