示例#1
0
 public int loadEncodeSession(String encode) {
   if (encode != null && !"".equals(encode)) {
     String[] parts = StringUtils.split(encode, flag);
     return decode(parts, 0);
   }
   return -1;
 }
示例#2
0
 public void set(int index, final String v) {
   final String value = StringUtils.replace(v, flag, "+");
   if (index >= values.length) {
     int size = index + 1;
     String[] res = new String[size];
     System.arraycopy(values, 0, res, 0, values.length);
     this.values = res;
   }
   this.values[index] = value;
 }