String data = new String(c.getData());
String[] entries = data.split("\n");
for(String entry : entries) {
Matcher m = pattern.matcher(entry);
if(m.matches()) {
ClientTraceBean ctb = new ClientTraceBean();
size = Long.parseLong(m.group(9));
action = m.group(10);
StringBuilder date = new StringBuilder();
date.append(m.group(1));
date.append(" ");
date.append(m.group(2));
ctb.setDate(date.toString());
ctb.setSrc(m.group(5));
ctb.setDest(m.group(7));
ctb.setAction(action);
ctb.setSize(size);
list.add(ctb);
} else {
log.error("Unparsable line: "+entry);
}
}