From be85be431304f9a70ea56d2716479c8fb7e3bfd1 Mon Sep 17 00:00:00 2001 From: ConstantConstantin Date: Fri, 12 Apr 2024 19:13:15 +0200 Subject: [PATCH] changed writeBytes() visibility --- .../java/javax/jmdns/impl/DNSOutgoing.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jmdns/src/main/java/javax/jmdns/impl/DNSOutgoing.java b/jmdns/src/main/java/javax/jmdns/impl/DNSOutgoing.java index c3ba24e..fc0124d 100644 --- a/jmdns/src/main/java/javax/jmdns/impl/DNSOutgoing.java +++ b/jmdns/src/main/java/javax/jmdns/impl/DNSOutgoing.java @@ -14,7 +14,7 @@ /** * An outgoing DNS message. - * + * * @author Arthur van Hoff, Rick Blair, Werner Randelshofer */ public final class DNSOutgoing extends DNSMessage { @@ -26,7 +26,7 @@ public static class MessageOutputStream extends ByteArrayOutputStream { /** * Creates a new message stream, with a buffer capacity of the specified size, in bytes. - * + * * @param size * the initial size. * @exception IllegalArgumentException @@ -52,7 +52,7 @@ void writeBytes(String str, int off, int len) { } } - void writeBytes(byte data[]) { + public void writeBytes(byte data[]) { if (data != null) { writeBytes(data, 0, data.length); } @@ -189,7 +189,7 @@ void writeRecord(DNSRecord rec, long now) { /** * Create an outgoing multicast query or response. - * + * * @param flags */ public DNSOutgoing(int flags) { @@ -198,7 +198,7 @@ public DNSOutgoing(int flags) { /** * Create an outgoing query or response. - * + * * @param flags * @param multicast */ @@ -208,7 +208,7 @@ public DNSOutgoing(int flags, boolean multicast) { /** * Create an outgoing query or response. - * + * * @param flags * @param multicast * @param senderUDPPayload @@ -226,7 +226,7 @@ public DNSOutgoing(int flags, boolean multicast, int senderUDPPayload) { /** * Return the number of byte available in the message. - * + * * @return available space */ public int availableSpace() { @@ -235,7 +235,7 @@ public int availableSpace() { /** * Add a question to the message. - * + * * @param rec * @exception IOException */ @@ -253,7 +253,7 @@ public void addQuestion(DNSQuestion rec) throws IOException { /** * Add an answer if it is not suppressed. - * + * * @param in * @param rec * @exception IOException @@ -266,7 +266,7 @@ public void addAnswer(DNSIncoming in, DNSRecord rec) throws IOException { /** * Add an answer to the message. - * + * * @param rec * @param now * @exception IOException @@ -289,7 +289,7 @@ public void addAnswer(DNSRecord rec, long now) throws IOException { /** * Add an authoritative answer to the message. - * + * * @param rec * @exception IOException */ @@ -307,7 +307,7 @@ public void addAuthorativeAnswer(DNSRecord rec) throws IOException { /** * Add an additional answer to the record. Omit if there is no room. - * + * * @param in * @param rec * @exception IOException @@ -326,7 +326,7 @@ public void addAdditionalAnswer(DNSIncoming in, DNSRecord rec) throws IOExceptio /** * Builds the final message buffer to be send and returns it. - * + * * @return bytes to send. */ public byte[] data() {