(String[] args)
| 121 | } |
| 122 | |
| 123 | public static void main(String[] args) { |
| 124 | // String str = "a<@URLENCODE><@BASE64>1</@BASE64></@URLENCODE>b<@BASE64>sd<@IMG_RAW></@IMG_RAW>sds\n\rsdsdd</@BASE64>"; |
| 125 | // str = "<@URLENCODE><@1URLENCODE>+11111</@1URLENCODE></@URLENCODE>"; |
| 126 | // LableParser lableParser = new LableParser("123".getBytes()); |
| 127 | // String res = lableParser.parseAllLable(str); |
| 128 | // System.out.println(res); |
| 129 | |
| 130 | String reqTpl = "a[base64]eHh4[base64]b"; |
| 131 | String base64encode = reqTpl.substring(reqTpl.indexOf("[base64]")+8,reqTpl.lastIndexOf("[base64]")); |
| 132 | String base64decode = new String(base64Decode(base64encode)); |
| 133 | String str = reqTpl.replace(String.format("[base64]%s[base64]",base64encode),base64decode); |
| 134 | System.out.println(str); |
| 135 | } |
| 136 | } |
nothing calls this directly
no test coverage detected