Interface MagicBytesAccessor.MagicBytesProperty

All Superinterfaces:
MagicBytesAccessor, MagicBytesAccessor.MagicBytesMutator
Enclosing interface:
MagicBytesAccessor

public static interface MagicBytesAccessor.MagicBytesProperty extends MagicBytesAccessor, MagicBytesAccessor.MagicBytesMutator
Provides a magic bytes property.
  • Method Details

    • letMagicBytes

      default byte[] letMagicBytes(byte[] aMagicBytes)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as of MagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[]) and returns the very same value (getter).
      Parameters:
      aMagicBytes - The byte array to set (via MagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[])).
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.
    • letMagicBytes

      default String letMagicBytes(String aMagicBytes)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as of MagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[]) and returns the very same value (getter). 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.
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.
    • letMagicBytes

      default String letMagicBytes(String aMagicBytes, Charset aEncoding)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given byte array (setter) as of MagicBytesAccessor.MagicBytesMutator.setMagicBytes(byte[]) and returns the very same value (getter).
      Parameters:
      aMagicBytes - The magic bytes to be stored by the magic bytes property.
      aEncoding - The string's bytes are converted using the given Charset.
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.