Examples of RhizomeManifestBundle


Examples of org.servalproject.servaldna.rhizome.RhizomeManifestBundle

  }

  static void rhizome_manifest(BundleId bid, String dstpath) throws ServalDInterfaceException, IOException, InterruptedException
  {
    ServalDClient client = new ServerControl().getRestfulClient();
    RhizomeManifestBundle bundle = client.rhizomeManifest(bid);
    if (bundle == null)
      System.out.println("not found");
    else {
      System.out.println(
          (bundle.rowId == null ? "" : "_rowId=" + bundle.rowId + "\n") +
          (bundle.insertTime == null ? "" : "_insertTime=" + bundle.insertTime + "\n") +
          (bundle.author == null ? "" : "_author=" + bundle.author + "\n") +
          (bundle.secret == null ? "" : "_secret=" + bundle.secret + "\n") +
          manifestFields(bundle.manifest, "\n") + "\n"
        );
      FileOutputStream out = new FileOutputStream(dstpath);
      out.write(bundle.manifestText());
      out.close();
    }
    System.exit(0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.