From: <rv...@us...> - 2009-06-19 02:15:46
|
Revision: 61 http://treebase.svn.sourceforge.net/treebase/?rev=61&view=rev Author: rvos Date: 2009-06-19 02:11:48 +0000 (Fri, 19 Jun 2009) Log Message: ----------- Added serialize(NexusDataSet) and serialize(Study) interface methods Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java 2009-06-19 02:10:56 UTC (rev 60) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/NexusService.java 2009-06-19 02:11:48 UTC (rev 61) @@ -56,5 +56,25 @@ * @return */ NexusDataSet parseNexus(Study pStudy, File pNexusFile); + + /** + * Write the NexusDataSet to a string that represents the object. + * The exact output format is up to the implementing service, i.e. + * this can either be nexus or nexml. + * + * @param pNexusDataSet + * @return a serialization of the supplied NexusDataSet + */ + String serialize(NexusDataSet pNexusDataSet); + + /** + * Write the NexusDataSet to a string that represents the object. + * The exact output format is up to the implementing service, i.e. + * this can either be nexus or nexml. + * + * @param pStudy + * @return a serialization of the supplied Study + */ + String serialize(Study pStudy); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |