-
- All Implemented Interfaces:
-
io.github.asperan.mimeinfo.context.Context
public final class MimeMagicContext implements Context<Magic>
The context of Magic elements.
-
-
Constructor Summary
Constructors Constructor Description MimeMagicContext()
-
Method Summary
Modifier and Type Method Description final UBytegetPriority()The priority of the magic element. final UnitsetPriority(UByte priority)final Unitmatch(Match.Type type, Match.Offset offset, String value, String mask)Add a match to the Magic element. Magicbuild()Build the object of the context. -
-
Method Detail
-
getPriority
final UByte getPriority()
The priority of the magic element.
-
setPriority
final Unit setPriority(UByte priority)
-
match
final Unit match(Match.Type type, Match.Offset offset, String value, String mask)
Add a match to the Magic element.
- Parameters:
type- The type of the match.offset- The offset of the match.value- The value of the match.mask- The mask for the match.
-
build
Magic build()
Build the object of the context.
-
-
-
-