FST fast-serialization 是重新实现的 Java 快速对象序列化的开发包。序列化速度更快(2-10倍)、体积更小,而且兼容 JDK 原生的序列化。要求 JDK 1.7 支持。
示例:
// if you create a new ConfiguRATion Object with each serialization !static FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration();...public MyClass myreadMethod(InputStream stream) throws IOException, ClassNotFoundException{ FSTObjectInput in = conf.getObjectInput(stream); MyClass result = in.readObject(MyClass.class); // DON'T: in.close(); here prevents reuse and will result in an exception stream.close(); return result;}public void mywriteMethod( OutputStream stream, MyClass toWrite ) throws IOException { FSTObjectOutput out = conf.getObjectOutput(stream); out.writeObject( toWrite, MyClass.class ); // DON'T out.close() when using facTory method; out.flush(); stream.close();}发布于 2018-01-04 03:19:29 | 159 次阅读
发布于 2017-04-11 00:32:20 | 186 次阅读
发布于 2016-02-29 00:56:51 | 223 次阅读
发布于 2016-02-14 01:21:29 | 171 次阅读
发布于 2015-07-12 00:29:27 | 206 次阅读
发布于 2015-05-07 00:31:18 | 209 次阅读
发布于 2015-04-24 03:51:38 | 157 次阅读
发布于 2015-03-02 23:54:11 | 198 次阅读
发布于 2015-02-09 00:02:57 | 153 次阅读
发布于 2015-02-07 01:01:12 | 226 次阅读
发布于 2015-02-03 22:18:28 | 198 次阅读
发布于 2015-02-01 23:49:10 | 260 次阅读
发布于 2014-12-14 23:31:46 | 167 次阅读
发布于 2014-11-30 00:31:43 | 160 次阅读
发布于 2014-11-29 00:55:51 | 184 次阅读
发布于 2014-11-20 23:28:32 | 127 次阅读
发布于 2014-11-16 00:28:31 | 220 次阅读
发布于 2014-10-30 23:23:09 | 151 次阅读
发布于 2014-10-19 23:47:45 | 137 次阅读
发布于 2014-10-01 23:19:27 | 131 次阅读