Interface PacketMagicBytesAccessor.PacketMagicBytesMutator

    • Method Detail

      • setPacketMagicBytes

        void setPacketMagicBytes​(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.
      • setPacketMagicBytes

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

        default void setPacketMagicBytes​(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.