private static byte[] getSerializedBytes(
ArrayList<String> list) {
if (null == list || list.size() < 0)
return null;
try {
ByteArrayOutputStream bo = new ByteArrayOutputStream();
ObjectOutputStream os = new ObjectOutputStream(bo);
os.writeObject(list);
return bo.toByteArray();
} catch (IOException e) {
return null;
}
}