de.undercouch.bson4jackson.io
Class ByteOrderUtil

java.lang.Object
  extended by de.undercouch.bson4jackson.io.ByteOrderUtil

public class ByteOrderUtil
extends java.lang.Object

Provides static methods to change the byte order of single values


Constructor Summary
ByteOrderUtil()
           
 
Method Summary
static int flip(int i)
          Flips the byte order of an integer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteOrderUtil

public ByteOrderUtil()
Method Detail

flip

public static int flip(int i)
Flips the byte order of an integer

Parameters:
i - the integer
Returns:
the flipped integer