picture.io
Class ByteUtils

java.lang.Object
  |
  +--picture.io.ByteUtils

public final class ByteUtils
extends java.lang.Object

Utility functions dealing with bytes.


Constructor Summary
ByteUtils()
           
 
Method Summary
static int unsignedByte2Int(byte b)
          Converts an unsigned byte to an int, i.e. it returns values between 0 and 255 instead of -128 to 127.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteUtils

public ByteUtils()
Method Detail

unsignedByte2Int

public static final int unsignedByte2Int(byte b)
Converts an unsigned byte to an int, i.e. it returns values between 0 and 255 instead of -128 to 127.
Parameters:
b - byte to convert
Returns:
unsigned value of b