public static boolean canDecode ( byte [ ] input , int off , int len ) { try { decode ( input , off , len ) ; } catch ( IllegalArgumentException ex ) { return false ; } return true ; }
Returns whether the specified range in the given byte array represents valid UTF - 8 encoded characters .