Package org.openpreservation.odf.fmt
Enum Class Signatures
- All Implemented Interfaces:
Serializable
,Comparable<Signatures>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
byte[]
boolean
isMatch
(byte[] bytes) boolean
isMatch
(byte[] bytes, int offset) static Signatures
match
(byte[] signature) static Signatures
match
(byte[] bytes, int offset) static Signatures
match
(byte[] bytes, int offset, Collection<Signatures> sigs) static Set<Signatures>
matchAll
(byte[] signature) static Set<Signatures>
matchAll
(byte[] bytes, int offset) static Signatures
Returns the enum constant of this class with the specified name.static Signatures[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOMATCH
-
ZIP
-
ZIP_EMPTY
-
ZIP_SPANNED
-
XML_UTF_8
-
XML_UTF_16_LE
-
XML_UTF_16_BE
-
XML_UTF_32_LE
-
XML_UTF_32_BE
-
ODF_MIME
-
ODB
-
ODC
-
ODF
-
ODG
-
ODI
-
ODM
-
ODP
-
ODS
-
ODT
-
OTC
-
OTF
-
OTG
-
OTH
-
OTI
-
OTM
-
OTP
-
OTS
-
OTT
-
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTH -
offset
public final int offset
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
match
-
match
-
match
-
matchAll
-
matchAll
-
getLength
public int getLength() -
getSignature
public byte[] getSignature() -
isMatch
public boolean isMatch(byte[] bytes) -
isMatch
public boolean isMatch(byte[] bytes, int offset)
-