Interface MagicBytesAccessor

All Superinterfaces:
org.refcodes.mixin.MagicBytesAccessor
All Known Subinterfaces:
MagicBytesAccessor.MagicBytesProperty
All Known Implementing Classes:
AbstractMagicBytesTransmission, AbstractMagicBytesTransmissionDecorator, AssertMagicBytesSectionDecorator, AssertMagicBytesSegment, AssertMagicBytesSegmentDecorator, BadMagicBytesException, BadMagicBytesSequenceException, MagicBytes, MagicBytesSectionDecorator, MagicBytesSegment, MagicBytesSegmentDecorator

public interface MagicBytesAccessor extends org.refcodes.mixin.MagicBytesAccessor
Provides an accessor for a magic byte array property.
  • Method Details

    • toMagicBytes

      default String toMagicBytes()
      Returns the magic bytes (as of MagicBytesAccessor.getMagicBytes()) String being UTF-8 encoded.
      Returns:
      The according magic bytes String.
    • toMagicBytes

      default String toMagicBytes(Charset aCharset)
      Returns the magic bytes (as of MagicBytesAccessor.getMagicBytes()) as an accordingly encoded String.
      Parameters:
      aCharset - The Charset to use for encoding.
      Returns:
      The accordingly encoded magic bytes String.