X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpMessage.java;h=ed4ae46ce84bf28a08aa1912374ca372d72f2d5d;hp=9b5d926754bbc476a076e301105b332b80bfba0b;hb=b171126719c983b590c51f22eb60a3e0afdf1fb9;hpb=572802370f7dff98b690df85b79e256335e28b33 diff --git a/src/main/java/net/pterodactylus/fcp/FcpMessage.java b/src/main/java/net/pterodactylus/fcp/FcpMessage.java index 9b5d926..ed4ae46 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpMessage.java +++ b/src/main/java/net/pterodactylus/fcp/FcpMessage.java @@ -59,9 +59,9 @@ public class FcpMessage implements Iterable { } /** - * Creates a new FCP message with the given name and the given payload input - * stream. The payload input stream is not read until the message is sent to - * the node using {@link FcpConnection#sendMessage(FcpMessage)}. + * Creates a new FCP message with the given name and the given payload + * input stream. The payload input stream is not read until the message is + * sent to the node using {@link FcpConnection#sendMessage(FcpMessage)}. * * @param name * The name of the message @@ -87,8 +87,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); @@ -153,8 +153,8 @@ 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). + * 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