Class RefAdvertiser.PacketLineOutRefAdvertiser

    • Constructor Detail

      • PacketLineOutRefAdvertiser

        public PacketLineOutRefAdvertiser​(PacketLineOut out)
        Create a new advertiser for the supplied stream.
        Parameters:
        out - the output stream.
    • Method Detail

      • writeOne

        protected void writeOne​(java.lang.CharSequence line)
                         throws java.io.IOException
        Description copied from class: RefAdvertiser
        Write a single advertisement line.
        Specified by:
        writeOne in class RefAdvertiser
        Parameters:
        line - the advertisement line to be written. The line always ends with LF. Never null or the empty string.
        Throws:
        java.io.IOException - the underlying output stream failed to write out an advertisement record.
      • end

        protected void end()
                    throws java.io.IOException
        Description copied from class: RefAdvertiser
        Mark the end of the advertisements.
        Specified by:
        end in class RefAdvertiser
        Throws:
        java.io.IOException - the underlying output stream failed to write out an advertisement record.