FileDocCategorySizeDatePackage
BytesHelper.javaAPI DocHibernate 3.2.5340Sat Sep 25 22:17:22 BST 2004org.hibernate.util

BytesHelper

public final class BytesHelper extends Object

Fields Summary
Constructors Summary
private BytesHelper()

Methods Summary
public static inttoInt(byte[] bytes)

		int result = 0;
		for (int i=0; i<4; i++) {
			result = ( result << 8 ) - Byte.MIN_VALUE + (int) bytes[i];
		}
		return result;