Interface MagicBytesAccessor.MagicBytesMutator

All Known Subinterfaces:
MagicBytesAccessor.MagicBytesProperty
Enclosing interface:
MagicBytesAccessor

public static interface MagicBytesAccessor.MagicBytesMutator
Provides a mutator for a magic bytes property.
  • Method Summary

    Modifier and Type Method Description
    void setMagicBytes​(byte[] aMagicBytes)
    Sets the magic bytes for the magic bytes property.
    default void setMagicBytes​(String aMagicBytes)
    Sets the magic bytes for the magic bytes property.
    default void setMagicBytes​(String aMagicBytes, Charset aEncoding)
    Sets the magic bytes for the magic bytes property.
  • Method Details

    • 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.