com.qinsoft.qmemache.QMemcacheResponse Maven / Gradle / Ivy
package com.qinsoft.qmemache;
import java.nio.charset.Charset;
/**
* QMemcache响应模型
*/
public class QMemcacheResponse {
static class QMemcacheResponseItem{
//参数
private Object[]params;
//数据
private String bodyData;
public Object[] getParams() {
return params;
}
public void setParams(Object[] params) {
this.params = params;
}
public String getBodyData() {
return bodyData;
}
public void setBodyData(String bodyData) {
this.bodyData = bodyData;
}
public QMemcacheResponseItem(Object[]params, String bodyData){
this.params=params;
this.bodyData=bodyData;
}
}
private QMemcacheResponse []items;
public QMemcacheResponse[] getItems() {
return items;
}
public void setItems(QMemcacheResponse[] items) {
this.items = items;
}
public QMemcacheResponse(QMemcacheResponse []items){
this.items=items;
}
public static QMemcacheResponse decode(byte[] data, Charset charset){
if(data==null)throw new NullPointerException("data");
String content=new String(data,charset);
return null;
}
}