private static int getBOMType(byte[] _bomBytes, int _length) {
		for (int i = 0; i < BOMBYTES.length; i++) {
			for (int j = 0; j < _length && j < BOMBYTES[i].length; j++) {
				if (_bomBytes[j] != BOMBYTES[i][j])
					break;
				if (_bomBytes[j] == BOMBYTES[i][j]
						&& j == BOMBYTES[i].length - 1)
					return i;
			}
		}
		return NONE;
	}
private static int getBOMType ( byte [ ] _bomBytes , int _length ) { for ( int i = 0 ; i < BOMBYTES . length ; i ++ ) { for ( int j = 0 ; j < _length && j < BOMBYTES [ i ] . length ; j ++ ) { if ( _bomBytes [ j ] != BOMBYTES [ i ] [ j ] ) break ; if ( _bomBytes [ j ] == BOMBYTES [ i ] [ j ] && j == BOMBYTES [ i ] . length - 1 ) return i ; } } return NONE ; }
byte