Ejemplo n.º 1
0
 /**
  * Gets a document from the Document Store
  *
  * @param doc the YDocument to get. The YDocument's id must match an existing document
  * @param handle a valid session handle
  * @return the YDocument with the document (i.e. the binary file) inserted, if successful
  * @throws IOException if the service can't be reached
  */
 public YDocument getDocument(YDocument doc, String handle) throws IOException {
   doc.setDocument(executePost(toByteArray(doc, "get", handle)).toByteArray());
   return doc;
 }