Class DNSOutgoing.MessageOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
javax.jmdns.impl.DNSOutgoing.MessageOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
DNSOutgoing

public static class DNSOutgoing.MessageOutputStream extends ByteArrayOutputStream
  • Field Details

    • _out

      private final DNSOutgoing _out
    • _offset

      private final int _offset
  • Constructor Details

    • MessageOutputStream

      MessageOutputStream(int size, DNSOutgoing out)
      Creates a new message stream, with a buffer capacity of the specified size, in bytes.
      Parameters:
      size - the initial size.
      Throws:
      IllegalArgumentException - if size is negative.
    • MessageOutputStream

      MessageOutputStream(int size, DNSOutgoing out, int offset)
  • Method Details

    • writeByte

      void writeByte(int value)
    • writeBytes

      void writeBytes(String str, int off, int len)
    • writeBytes

      public void writeBytes(byte[] data)
    • writeBytes

      void writeBytes(byte[] data, int off, int len)
    • writeShort

      void writeShort(int value)
    • writeInt

      void writeInt(int value)
    • writeUTF

      void writeUTF(String str, int off, int len)
    • writeName

      void writeName(String name)
    • writeName

      void writeName(String name, boolean useCompression)
    • indexOfSeparator

      private static int indexOfSeparator(String aName)
    • writeQuestion

      void writeQuestion(DNSQuestion question)
    • writeRecord

      void writeRecord(DNSRecord rec, long now)