public final class JpegSyntaxChecker extends SyntaxChecker
The JFIF (Jpeg File Interchange Format) specify that a jpeg image starts with the following bytes :
0xFF 0xD8 (SOI, Start Of Image) 0xFF 0xE0 (App0 for JFIF) or 0xDD 0xE1 (App1 for Exif) 0xNN 0xNN (Header length) "JFIF\0" (JFIF string with an ending \0) some other bytes which are related to the image.We will check for those 11 bytes, except the length.
Modifier and Type | Class and Description |
---|---|
static class |
JpegSyntaxChecker.Builder
A static Builder for this class
|
SyntaxChecker.SCBuilder<SC>
Modifier and Type | Field and Description |
---|---|
static JpegSyntaxChecker |
INSTANCE
A static instance of JpegSyntaxChecker
|
serialVersionUID
Modifier and Type | Method and Description |
---|---|
static JpegSyntaxChecker.Builder |
builder() |
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
equals, setSchemaManager, toString
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
public static final JpegSyntaxChecker INSTANCE
public static JpegSyntaxChecker.Builder builder()
public boolean isValidSyntax(Object value)
isValidSyntax
in class SyntaxChecker
value
- the value of some attribute with the syntaxCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.