public enum PictureType extends java.lang.Enum<PictureType>
Enum Constant and Description |
---|
BMP |
EMF |
GIF |
JPEG |
PICT |
PNG |
TIFF |
UNKNOWN |
WMF |
Modifier and Type | Method and Description |
---|---|
static PictureType |
findMatchingType(byte[] pictureContent) |
java.lang.String |
getExtension() |
java.lang.String |
getMime() |
byte[][] |
getSignatures() |
boolean |
matchSignature(byte[] pictureData) |
static PictureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PictureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PictureType BMP
public static final PictureType EMF
public static final PictureType GIF
public static final PictureType JPEG
public static final PictureType PICT
public static final PictureType PNG
public static final PictureType TIFF
public static final PictureType UNKNOWN
public static final PictureType WMF
public static PictureType[] values()
for (PictureType c : PictureType.values()) System.out.println(c);
public static PictureType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PictureType findMatchingType(byte[] pictureContent)
public java.lang.String getExtension()
public java.lang.String getMime()
public byte[][] getSignatures()
public boolean matchSignature(byte[] pictureData)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.