Here you can find the source of unescape(String s, int i)
private static byte unescape(String s, int i)
//package com.java2s; //License from project: Mozilla Public License public class Main { private static byte unescape(String s, int i) { return (byte) Integer.parseInt(s.substring(i + 1, i + 3), 16); }/*from w w w . jav a 2 s . c o m*/ }