private static boolean paddingByteIs(byte[] data,int len,byte b){
  for (int i=48; i < len; i++) {
    if (data[i] != b)     return false;
  }
  return true;
}

private static boolean paddingByteIs ( byte [ ] data , int len , byte b ) { for ( int i = 48 ; i < len ; i ++ ) { if ( data [ i ] != b ) return false ; } return true ; }
checks if all paddings of data are b
