org.vorbis.tageditor.tools
Class ByteHelper

java.lang.Object
  extended by org.vorbis.tageditor.tools.ByteHelper

public class ByteHelper
extends java.lang.Object

Helper class for working on bytes.

Author:
S-Oualid

Constructor Summary
ByteHelper()
           
 
Method Summary
static int reverseBytes(int i)
          Reverse some bit inside a byte.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteHelper

public ByteHelper()
Method Detail

reverseBytes

public static int reverseBytes(int i)
Reverse some bit inside a byte. Example: 0x0011 will return 0x1100.

Parameters:
i - The byte to reverse.
Returns:
The reversed byte