simplify creation of payload input stream
[jSite2.git] / src / net / pterodactylus / util / fcp / Version.java
index 0bcb28b..fe400af 100644 (file)
@@ -5,7 +5,7 @@ import java.util.StringTokenizer;
 /**
  * Container for the “lastGoodVersion” field.
  * 
- * @author <a href="mailto:dr@ina-germany.de">David Roden</a>
+ * @author David ‘Bombe’ Roden &lt;bombe@freenetproject.org&gt;
  * @version $Id$
  */
 public class Version {
@@ -23,9 +23,9 @@ public class Version {
        private final int buildNumber;
 
        /**
-        * Creates a new Version from the given string. The string consists of
-        * the four required fields node name, tree version, protocol version,
-        * and build number, separated by a comma.
+        * Creates a new Version from the given string. The string consists of the
+        * four required fields node name, tree version, protocol version, and build
+        * number, separated by a comma.
         * 
         * @param version
         *            The version string
@@ -107,4 +107,12 @@ public class Version {
                return buildNumber;
        }
 
+       /**
+        * @see java.lang.Object#toString()
+        */
+       @Override
+       public String toString() {
+               return nodeName + "," + treeVersion + "," + protocolVersion + "," + buildNumber;
+       }
+
 }
\ No newline at end of file