public static byte[] getSerializedBytes(Map<String, Double> 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;
}
}
map转byte
最新推荐文章于 2021-11-29 18:00:50 发布