Interface PacketMagicBytesAccessor.PacketMagicBytesBuilder<B extends PacketMagicBytesAccessor.PacketMagicBytesBuilder<B>>

    • Method Detail

      • withPacketMagicBytes

        B withPacketMagicBytes​(byte[] aPacketMagicBytes)
        Sets the magic bytes for the packet magic bytes property.
        Parameters:
        aPacketMagicBytes - The magic bytes to be stored by the packet magic bytes property.
        Returns:
        The builder for applying multiple build operations.
      • withPacketMagicBytes

        default B withPacketMagicBytes​(String aPacketMagicBytes)
        Sets the magic bytes for the packet magic bytes property.
        Parameters:
        aPacketMagicBytes - The magic bytes to be stored by the magic bytes property. Uses TransmissionMetrics.DEFAULT_ENCODING for converting the String into a byte array.
        Returns:
        the b
      • withPacketMagicBytes

        default B withPacketMagicBytes​(String aPacketMagicBytes,
                                       Charset aEncoding)
        Sets the magic bytes for the packet magic bytes property.
        Parameters:
        aPacketMagicBytes - The magic bytes to be stored by the magic bytes property.
        aEncoding - The string's bytes are converted using the given Charset.
        Returns:
        The builder for applying multiple build operations.