More whitespace fixes.
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpMessage.java
index ff65a98..b238db3 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * jSite2 - FcpMessage.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - FcpMessage.java - Copyright © 2008 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -34,7 +33,6 @@ import java.util.Map.Entry;
  * data that follows the marker.
  *
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 public class FcpMessage implements Iterable<String> {
 
@@ -89,8 +87,8 @@ public class FcpMessage implements Iterable<String> {
         *
         * @param field
         *            The name of the field to check for
-        * @return <code>true</code> if the message has a field with the given
-        *         name, <code>false</code> otherwise
+        * @return <code>true</code> if the message has a field with the given name,
+        *         <code>false</code> otherwise
         */
        public boolean hasField(String field) {
                return fields.containsKey(field);
@@ -117,8 +115,8 @@ public class FcpMessage implements Iterable<String> {
         *
         * @param field
         *            The name of the field
-        * @return The value of the field, or <code>null</code> if there is no
-        *         such field
+        * @return The value of the field, or <code>null</code> if there is no such
+        *         field
         */
        public String getField(String field) {
                return fields.get(field);
@@ -152,10 +150,10 @@ public class FcpMessage implements Iterable<String> {
 
        /**
         * Writes this message to the given output stream. If the message has a
-        * payload (i.e. {@link #payloadInputStream} is not <code>null</code>)
-        * the payload is written to the given output stream after the message as
-        * well. That means that this method can only be called once because on the
-        * second invocation the payload input stream could not be read (again).
+        * payload (i.e. {@link #payloadInputStream} is not <code>null</code>) the
+        * payload is written to the given output stream after the message as well.
+        * That means that this method can only be called once because on the second
+        * invocation the payload input stream could not be read (again).
         *
         * @param outputStream
         *            The output stream to write the message to
@@ -164,7 +162,7 @@ public class FcpMessage implements Iterable<String> {
         */
        public void write(OutputStream outputStream) throws IOException {
                writeLine(outputStream, name);
-               for (Entry<String, String> fieldEntry: fields.entrySet()) {
+               for (Entry<String, String> fieldEntry : fields.entrySet()) {
                        writeLine(outputStream, fieldEntry.getKey() + "=" + fieldEntry.getValue());
                }
                writeLine(outputStream, "EndMessage");