Interface MagicBytesAccessor.MagicBytesMutator

    • Method Detail

      • setMagicBytes

        void setMagicBytes​(byte[] aMagicBytes)
        Sets the magic bytes for the magic bytes property.
        Parameters:
        aMagicBytes - The magic bytes to be stored by the magic bytes property.
      • setMagicBytes

        default void setMagicBytes​(String aMagicBytes)
        Sets the magic bytes for the magic bytes property. If not stated otherwise, the String is converted using the platform encoding into an array of bytes.
        Parameters:
        aMagicBytes - The magic bytes to be stored by the magic bytes property.
      • setMagicBytes

        default void setMagicBytes​(String aMagicBytes,
                                   Charset aEncoding)
        Sets the magic bytes for the magic bytes property.
        Parameters:
        aMagicBytes - The magic bytes to be stored by the magic bytes property.
        aEncoding - The string's bytes are converted using the given Charset.