Package org.apache.poi.common.usermodel
Enum PictureType
- java.lang.Object
-
- java.lang.Enum<PictureType>
-
- org.apache.poi.common.usermodel.PictureType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PictureType>
public enum PictureType extends java.lang.Enum<PictureType>
General enum class to define a picture format/type- Since:
- POI 5.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BMPWindows Bitmap (.bmp)CLIENTclient defined blip type - native-id 32 to 255CMYKJPEGJPEG in the YCCK or CMYK color space.DIBDevice independent bitmapEMFExtended windows meta fileEPSEncapsulated Postscript (.eps)ERRORPicture type error - specific to escher bse recordGIFGIF image formatJPEGJPEG formatPICTMac PICT formatPNGPNG formatSVGScalable vector graphics (.svg) - supported by Office 2016 and higherTIFFTag Image File (.tiff)UNKNOWNUnknown picture type - specific to escher bse recordWDPMicrosoft Windows Media Photo image (.wdp)WMFWindows Meta FileWPGWordPerfect graphics (.wpg)
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcontentTypejava.lang.StringextensionintooxmlId
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PictureTypefindByOoxmlId(int ooxmlId)java.lang.StringgetContentType()java.lang.StringgetExtension()intgetOoxmlId()static PictureTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PictureTypevalueOf(FileMagic fm)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.
-
-
-
Enum Constant Detail
-
EMF
public static final PictureType EMF
Extended windows meta file
-
WMF
public static final PictureType WMF
Windows Meta File
-
PICT
public static final PictureType PICT
Mac PICT format
-
JPEG
public static final PictureType JPEG
JPEG format
-
PNG
public static final PictureType PNG
PNG format
-
DIB
public static final PictureType DIB
Device independent bitmap
-
GIF
public static final PictureType GIF
GIF image format
-
TIFF
public static final PictureType TIFF
Tag Image File (.tiff)
-
EPS
public static final PictureType EPS
Encapsulated Postscript (.eps)
-
BMP
public static final PictureType BMP
Windows Bitmap (.bmp)
-
WPG
public static final PictureType WPG
WordPerfect graphics (.wpg)
-
WDP
public static final PictureType WDP
Microsoft Windows Media Photo image (.wdp)
-
SVG
public static final PictureType SVG
Scalable vector graphics (.svg) - supported by Office 2016 and higher
-
UNKNOWN
public static final PictureType UNKNOWN
Unknown picture type - specific to escher bse record
-
ERROR
public static final PictureType ERROR
Picture type error - specific to escher bse record
-
CMYKJPEG
public static final PictureType CMYKJPEG
JPEG in the YCCK or CMYK color space.
-
CLIENT
public static final PictureType CLIENT
client defined blip type - native-id 32 to 255
-
-
Method Detail
-
values
public static PictureType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PictureType c : PictureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PictureType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getContentType
public java.lang.String getContentType()
-
getExtension
public java.lang.String getExtension()
-
getOoxmlId
public int getOoxmlId()
-
valueOf
public static PictureType valueOf(FileMagic fm)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
fm- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
findByOoxmlId
public static PictureType findByOoxmlId(int ooxmlId)
- Parameters:
ooxmlId- for PictureType- Returns:
- PictureType, null if ooxmlId does not match any PictureTypes
-
-