Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed writeBytes() visibility #1

Open
wants to merge 1 commit into
base: kinetic
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions jmdns/src/main/java/javax/jmdns/impl/DNSOutgoing.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* An outgoing DNS message.
*
*
* @author Arthur van Hoff, Rick Blair, Werner Randelshofer
*/
public final class DNSOutgoing extends DNSMessage {
Expand All @@ -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
Expand All @@ -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);
}
Expand Down Expand Up @@ -189,7 +189,7 @@ void writeRecord(DNSRecord rec, long now) {

/**
* Create an outgoing multicast query or response.
*
*
* @param flags
*/
public DNSOutgoing(int flags) {
Expand All @@ -198,7 +198,7 @@ public DNSOutgoing(int flags) {

/**
* Create an outgoing query or response.
*
*
* @param flags
* @param multicast
*/
Expand All @@ -208,7 +208,7 @@ public DNSOutgoing(int flags, boolean multicast) {

/**
* Create an outgoing query or response.
*
*
* @param flags
* @param multicast
* @param senderUDPPayload
Expand All @@ -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() {
Expand All @@ -235,7 +235,7 @@ public int availableSpace() {

/**
* Add a question to the message.
*
*
* @param rec
* @exception IOException
*/
Expand All @@ -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
Expand All @@ -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
Expand All @@ -289,7 +289,7 @@ public void addAnswer(DNSRecord rec, long now) throws IOException {

/**
* Add an authoritative answer to the message.
*
*
* @param rec
* @exception IOException
*/
Expand All @@ -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
Expand All @@ -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() {
Expand Down