企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
``` ByteArrayOutputStream out = new ByteArrayOutputStream(); HessianOutput output = new HessianOutput(out); output.writeObject(new User("Jim", 20)); byte[] bytes = out.toByteArray(); System.err.println(bytes); ByteArrayInputStream in = new ByteArrayInputStream(bytes); HessianInput input= new HessianInput(in); User u = (User) input.readObject(); System.err.println(u); ```