(String[] args)
| 174 | } |
| 175 | |
| 176 | public static void main(String[] args) { |
| 177 | // String str = "a<@URLENCODE><@BASE64>1</@BASE64></@URLENCODE>b<@BASE64>sd<@IMG_RAW></@IMG_RAW>sds\n\rsdsdd</@BASE64>"; |
| 178 | // str = "<@URLENCODE><@1URLENCODE>+11111</@1URLENCODE></@URLENCODE>"; |
| 179 | // LableParser lableParser = new LableParser("123".getBytes()); |
| 180 | // String res = lableParser.parseAllLable(str); |
| 181 | // System.out.println(res); |
| 182 | |
| 183 | String reqTpl = "a[base64]eHh4[base64]b"; |
| 184 | String base64encode = reqTpl.substring(reqTpl.indexOf("[base64]")+8,reqTpl.lastIndexOf("[base64]")); |
| 185 | String base64decode = new String(base64Decode(base64encode)); |
| 186 | String str = reqTpl.replace(String.format("[base64]%s[base64]",base64encode),base64decode); |
| 187 | // System.out.println(str); |
| 188 | } |
| 189 | } |
nothing calls this directly
no test coverage detected