X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FFcpMessage.java;h=a2ac894d9f35fe5927beb1e7c1d10cb8d7e04633;hb=19b64d7251237d7fae94b152d8a83b346ff77c33;hp=96e5f65dc96c23bdaec110fba721c30137e3e5c2;hpb=450cca137543c1d8adfdca98b410dfefeb6256cf;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/FcpMessage.java b/src/net/pterodactylus/fcp/FcpMessage.java index 96e5f65..a2ac894 100644 --- a/src/net/pterodactylus/fcp/FcpMessage.java +++ b/src/net/pterodactylus/fcp/FcpMessage.java @@ -88,8 +88,8 @@ public class FcpMessage implements Iterable { * * @param field * The name of the field to check for - * @return true if the message has a field with the given - * name, false otherwise + * @return true if the message has a field with the given name, + * false otherwise */ public boolean hasField(String field) { return fields.containsKey(field); @@ -116,8 +116,8 @@ public class FcpMessage implements Iterable { * * @param field * The name of the field - * @return The value of the field, or null if there is no - * such field + * @return The value of the field, or null if there is no such + * field */ public String getField(String field) { return fields.get(field); @@ -151,10 +151,10 @@ public class FcpMessage implements Iterable { /** * Writes this message to the given output stream. If the message has a - * payload (i.e. {@link #payloadInputStream} is not null) - * 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 null) 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 @@ -163,7 +163,7 @@ public class FcpMessage implements Iterable { */ public void write(OutputStream outputStream) throws IOException { writeLine(outputStream, name); - for (Entry fieldEntry: fields.entrySet()) { + for (Entry fieldEntry : fields.entrySet()) { writeLine(outputStream, fieldEntry.getKey() + "=" + fieldEntry.getValue()); } writeLine(outputStream, "EndMessage");