i have a proposed api change:
/**
* Write to the output stream a curnit archive of a curnit with the
* specified curnit id, title and root pod
*
* @return
* @throws Exception
*/
public static void writeCurnit(CurnitUuid curnitId, String curnitTitle,
Pod rootPod, OutputStream out) throws Exception {
Curnit curnit = new Curnit();
curnit.setCurnitId(curnitId);
curnit.setTitle(curnitTitle);
curnit.setRootPodId(rootPod.getPodId());
CurnitArchive.writeArchive(curnit, out);
System.out.println("wrote curnit with this pod tree:");
SailBeanUtils.printTree(System.out, 0, rootPod);
}
why not have it return the Curnit or the archive when its done writing it?
so:
public static Curnit writeCurnit(CurnitUuid curnitId, String curnitTitle,
Pod rootPod, OutputStream out) throws Exception {
-Tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---