首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > universalserialiser

universalserialiser

  • 资源大小:71.38 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Give a java object and serialize it in many formats! get the feed and create the java object! Easy ;) ``` boolean indent = true; OutpuStream outputStream = new FileOutputStream("file1.txt"); Map extraParameters = new HashMap(); //in XML UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.XML); //in JSON UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.JSON); //in Python UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.PYTHON); //in PHP UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.PHP); //in Ruby UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.RUBY); //in Atom UniversalSerializer.getInstance().write(outputStream, myObbject, indent,extraParameters, OutputFormat.ATOM);

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.216165s