equal
deleted
inserted
replaced
515 "escaped hex value must include two valid digits"); |
515 "escaped hex value must include two valid digits"); |
516 |
516 |
517 if (hexDigits.indexOf(Character.toUpperCase((char)c2)) >= 0) { |
517 if (hexDigits.indexOf(Character.toUpperCase((char)c2)) >= 0) { |
518 int hi = Character.digit((char)c1, 16); |
518 int hi = Character.digit((char)c1, 16); |
519 int lo = Character.digit((char)c2, 16); |
519 int lo = Character.digit((char)c2, 16); |
520 return new Byte((byte)((hi<<4) + lo)); |
520 return (byte)((hi<<4) + lo); |
521 } else { |
521 } else { |
522 throw new IOException |
522 throw new IOException |
523 ("escaped hex value must include two valid digits"); |
523 ("escaped hex value must include two valid digits"); |
524 } |
524 } |
525 } |
525 } |