Enum Class Signatures

java.lang.Object
java.lang.Enum<Signatures>
org.openpreservation.odf.fmt.Signatures
All Implemented Interfaces:
Serializable, Comparable<Signatures>, java.lang.constant.Constable

public enum Signatures extends Enum<Signatures>
  • Enum Constant Details

  • Field Details

    • MAX_LENGTH

      public static final int MAX_LENGTH
    • offset

      public final int offset
  • Method Details

    • values

      public static Signatures[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Signatures valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • match

      public static Signatures match(byte[] signature)
    • match

      public static Signatures match(byte[] bytes, int offset)
    • match

      public static Signatures match(byte[] bytes, int offset, Collection<Signatures> sigs)
    • matchAll

      public static Set<Signatures> matchAll(byte[] signature)
    • matchAll

      public static Set<Signatures> matchAll(byte[] bytes, int offset)
    • getLength

      public int getLength()
    • getSignature

      public byte[] getSignature()
    • isMatch

      public boolean isMatch(byte[] bytes)
    • isMatch

      public boolean isMatch(byte[] bytes, int offset)