添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
独立的汉堡包  ·  Mybatis + ...·  1 年前    · 
紧张的火龙果  ·  Perform grouped joins ...·  1 年前    · 
直爽的海豚  ·  错误 101 ...·  2 年前    · 
好帅的伤疤  ·  Desktop Window ...·  2 年前    · 
public static byte[] objectToBytes(Object obj) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); ObjectOutputStream sOut = new ObjectOutputStream(out); sOut.writeObject(obj); sOut.flush(); byte[] bytes = out.toByteArray(); return bytes; * 字节数组转对象 public static Object bytesToObject(byte[] bytes) throws IOException, ClassNotFoundException { ByteArrayInputStream in = new ByteArrayInputStream(bytes); ObjectInputStream sIn = new ObjectInputStream(in); return sIn.readObject();