Class ImageType
- java.lang.Object
-
- com.jogamp.opengl.util.texture.ImageType
-
public class ImageType extends Object
Image type classification.Allows to classify the
ImageType
of anInputStream
viaImageType(InputStream)
or to simply define oneImageType
viaImageType(String)
.- Since:
- 2.3.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageType.Util
-
Field Summary
Fields Modifier and Type Field Description byte[]
header
The optionally read header of sizeMAGIC_MAX_SIZE
bytes as used to determine thetype
, i.e.static int
MAGIC_MAX_SIZE
Minimum number of bytes to determine the image data type, i.e.static String
T_3D2
Constant which can be used as a file suffix to indicate aTBD
stream, value "3d2".static String
T_3DMF
Constant which can be used as a file suffix to indicate an Apple QuickDraw 3D 3DMF stream, value "3dmf".static String
T_92I
Constant which can be used as a file suffix to indicate a Texas Instruments TI-92 Bitmap stream, value "92i".static String
T_AMFF
Constant which can be used as a file suffix to indicate an Amiga metafile stream, value "amff".static String
T_ART
Constant which can be used as a file suffix to indicate an America Online Art stream, value "art".static String
T_BMP
Constant which can be used as a file suffix to indicate a GIF stream, value "bmp".static String
T_CALS
Constant which can be used as a file suffix to indicate a United States Department of Defence Continuous Acquisition and Life-cycle Support Raster stream, value "cals".static String
T_CAM
Constant which can be used as a file suffix to indicate aTBD
stream, value "cam".static String
T_CBD
Constant which can be used as a file suffix to indicate aTBD
stream, value "cbd".static String
T_CE2
Constant which can be used as a file suffix to indicate aTBD
stream, value "ce2".static String
T_CIN
Constant which can be used as a file suffix to indicate a Kodak Cineon System stream, value "cin".static String
T_COB
Constant which can be used as a file suffix to indicate aTBD
stream, value "cob".static String
T_CPT
Constant which can be used as a file suffix to indicate a Corel Photo Paint stream, value "cpt".static String
T_CUR
Constant which can be used as a file suffix to indicate a Microsoft Windows Cursor stream, value "cur".static String
T_CVG
Constant which can be used as a file suffix to indicate aTBD
stream, value "cvg".static String
T_DCX
Constant which can be used as a file suffix to indicate aTBD
stream, value "dcx".static String
T_DDS
Constant which can be used as a file suffix to indicate a DirectDraw Surface stream, value "dds".static String
T_DEM
Constant which can be used as a file suffix to indicate aTBD
stream, value "dem".static String
T_DIB
Constant which can be used as a file suffix to indicate aTBD
stream, value "dib".static String
T_DPX
Constant which can be used as a file suffix to indicate a Digital Picture Exchange stream, value "dpx".static String
T_DRW
Constant which can be used as a file suffix to indicate aTBD
stream, value "drw".static String
T_DWG
Constant which can be used as a file suffix to indicate a Autocad drawing stream, value "dwg".static String
T_ECW
Constant which can be used as a file suffix to indicate a Hexagon Geospatial Enhanced Compression Wavelet stream, value "ecw".static String
T_EMF
Constant which can be used as a file suffix to indicate a Microsoft Windows Enhanced metafile stream, value "emf".static String
T_FPX
Constant which can be used as a file suffix to indicate a FlashPix stream, value "fpx".static String
T_FTS
Constant which can be used as a file suffix to indicate aTBD
stream, value "fts".static String
T_GIF
Constant which can be used as a file suffix to indicate a GIF stream, value "gif".static String
T_GRO
Constant which can be used as a file suffix to indicate aTBD
stream, value "gro".static String
T_HDR
Constant which can be used as a file suffix to indicate aTBD
stream, value "hdr".static String
T_HRU
Constant which can be used as a file suffix to indicate aTBD
stream, value "hru".static String
T_ICNS
Constant which can be used as a file suffix to indicate an Apple Icon Image stream, value "icns".static String
T_ICO
Constant which can be used as a file suffix to indicate a Microsoft Windows Icon stream, value "ico".static String
T_IMG
Constant which can be used as a file suffix to indicate aTBD
stream, value "img".static String
T_INFINI_D
Constant which can be used as a file suffix to indicate aTBD
stream, value "infini-d".static String
T_IWC
Constant which can be used as a file suffix to indicate aTBD
stream, value "iwc".static String
T_J6I
Constant which can be used as a file suffix to indicate aTBD
stream, value "j6i".static String
T_JIF
Constant which can be used as a file suffix to indicate aTBD
stream, value "jif".static String
T_JP2
Constant which can be used as a file suffix to indicate a JPEG-2000 stream, value "jp2".static String
T_JPG
Constant which can be used as a file suffix to indicate a JPEG stream, value "jpg".static String
T_KDC
Constant which can be used as a file suffix to indicate aTBD
stream, value "kdc".static String
T_L64
Constant which can be used as a file suffix to indicate aTBD
stream, value "l64".static String
T_LBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "lbm".static String
T_LDF
Constant which can be used as a file suffix to indicate aTBD
stream, value "ldf".static String
T_LWF
Constant which can be used as a file suffix to indicate aTBD
stream, value "lwf".static String
T_MBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "mbm".static String
T_MGL
Constant which can be used as a file suffix to indicate aTBD
stream, value "mgl".static String
T_MIF
Constant which can be used as a file suffix to indicate an Imagemagick stream, value "mif".static String
T_MNG
Constant which can be used as a file suffix to indicate a Multiple-image Network Graphics stream, value "mng".static String
T_MPW
Constant which can be used as a file suffix to indicate aTBD
stream, value "mpw".static String
T_MSP
Constant which can be used as a file suffix to indicate aTBD
stream, value "msp".static String
T_N64
Constant which can be used as a file suffix to indicate aTBD
stream, value "n64".static String
T_NCR
Constant which can be used as a file suffix to indicate aTBD
stream, value "ncr".static String
T_NFF
Constant which can be used as a file suffix to indicate aTBD
stream, value "nff".static String
T_NGG
Constant which can be used as a file suffix to indicate aTBD
stream, value "ngg".static String
T_NLM
Constant which can be used as a file suffix to indicate aTBD
stream, value "nlm".static String
T_NOL
Constant which can be used as a file suffix to indicate aTBD
stream, value "nol".static String
T_PAL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pal".static String
T_PAM
Constant which can be used as a file suffix to indicate a Portable Arbitrary Map stream, NetPbm magic 7 - binary RGB and RGBA.static String
T_PAX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pax".static String
T_PBM
Constant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 4 - binary monochrome.static String
T_PCD
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcd".static String
T_PCL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcl".static String
T_PCX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcx".static String
T_PGM
Constant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 5 - binary grayscale.static String
T_PIC
Constant which can be used as a file suffix to indicate a Softimage pic stream, value "pic".static String
T_PIX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pix".static String
T_PNG
Constant which can be used as a file suffix to indicate a PNG stream, value "png".static String
T_POL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pol".static String
T_PPM
Constant which can be used as a file suffix to indicate a PAM stream, NetPbm magic 6 - binary RGB.static String
T_PSD
Constant which can be used as a file suffix to indicate a Adobe PhotoShop stream, value "psd".static String
T_PSP
Constant which can be used as a file suffix to indicate a PaintShop Pro stream, value "psp".static String
T_QFX
Constant which can be used as a file suffix to indicate aTBD
stream, value "qfx".static String
T_QTM
Constant which can be used as a file suffix to indicate aTBD
stream, value "qtm".static String
T_RAD
Constant which can be used as a file suffix to indicate aTBD
stream, value "rad".static String
T_RAS
Constant which can be used as a file suffix to indicate a Sun Raster stream, value "ras".static String
T_RIX
Constant which can be used as a file suffix to indicate aTBD
stream, value "rix".static String
T_SGI_RGB
Constant which can be used as a file suffix to indicate an SGI RGB stream, value "rgb".static String
T_SID
Constant which can be used as a file suffix to indicate aTBD
stream, value "sid".static String
T_SLD
Constant which can be used as a file suffix to indicate aTBD
stream, value "sld".static String
T_SOD
Constant which can be used as a file suffix to indicate aTBD
stream, value "sod".static String
T_TGA
Constant which can be used as a file suffix to indicate a Targa stream, value "tga".static String
T_TIFF
Constant which can be used as a file suffix to indicate a TIFF stream, value "tiff".static String
T_WIC
Constant which can be used as a file suffix to indicate aTBD
stream, value "wic".static String
T_WLM
Constant which can be used as a file suffix to indicate aTBD
stream, value "wlm".static String
T_WMF
Constant which can be used as a file suffix to indicate aTBD
stream, value "wmf".static String
T_WPG
Constant which can be used as a file suffix to indicate a Wordperfect Graphics vectors stream, value "wpg".static String
T_WRL
Constant which can be used as a file suffix to indicate aTBD
stream, value "wrl".static String
T_XBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "xbm".static String
T_XPM
Constant which can be used as a file suffix to indicate a X PixMap stream, value "xpm".String
type
The determined unique type, e.g.
-
Constructor Summary
Constructors Constructor Description ImageType(InputStream stream)
Creates instance based on given stream.ImageType(String type)
Creates instance based on the given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
isDefined()
Returnstrue
iftype
is determined, i.e.String
toString()
-
-
-
Field Detail
-
MAGIC_MAX_SIZE
public static final int MAGIC_MAX_SIZE
Minimum number of bytes to determine the image data type, i.e. 25 bytes.- See Also:
- Constant Field Values
-
T_JPG
public static final String T_JPG
Constant which can be used as a file suffix to indicate a JPEG stream, value "jpg".http://www.faqs.org/faqs/jpeg-faq/part1/
http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=54989
- See Also:
- Constant Field Values
-
T_PNG
public static final String T_PNG
Constant which can be used as a file suffix to indicate a PNG stream, value "png".http://www.libpng.org/pub/png/spec/1.1/PNG-Rationale.html#R.PNG-file-signature
- See Also:
- Constant Field Values
-
T_ICNS
public static final String T_ICNS
Constant which can be used as a file suffix to indicate an Apple Icon Image stream, value "icns".'i' 'c' 'n' 's' ascii code
TODO
- See Also:
- Constant Field Values
-
T_ICO
public static final String T_ICO
Constant which can be used as a file suffix to indicate a Microsoft Windows Icon stream, value "ico".TODO
https://msdn.microsoft.com/en-us/library/ms997538.aspx
- See Also:
- Constant Field Values
-
T_CUR
public static final String T_CUR
Constant which can be used as a file suffix to indicate a Microsoft Windows Cursor stream, value "cur".TODO
TODO
- See Also:
- Constant Field Values
-
T_GIF
public static final String T_GIF
Constant which can be used as a file suffix to indicate a GIF stream, value "gif".GIF87A or GIF89A ascii code
http://www.w3.org/Graphics/GIF/spec-gif87a.txt http://www.w3.org/Graphics/GIF/spec-gif89a.txt
- See Also:
- Constant Field Values
-
T_BMP
public static final String T_BMP
Constant which can be used as a file suffix to indicate a GIF stream, value "bmp".BM ascii code
FIXME: Collision or supertype of
T_DIB
?http://www.fileformat.info/format/bmp/spec/e27073c25463436f8a64fa789c886d9c/view.htm
- See Also:
- Constant Field Values
-
T_DIB
public static final String T_DIB
Constant which can be used as a file suffix to indicate aTBD
stream, value "dib".FIXME: Collision or subtype of
T_BMP
?TODO
- See Also:
- Constant Field Values
-
T_DCX
public static final String T_DCX
Constant which can be used as a file suffix to indicate aTBD
stream, value "dcx".TODO
TODO
- See Also:
- Constant Field Values
-
T_PCX
public static final String T_PCX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcx".TODO
TODO
- See Also:
- Constant Field Values
-
T_PPM
public static final String T_PPM
Constant which can be used as a file suffix to indicate a PAM stream, NetPbm magic 6 - binary RGB.http://netpbm.sourceforge.net/doc/ppm.html
- See Also:
- Constant Field Values
-
T_PSD
public static final String T_PSD
Constant which can be used as a file suffix to indicate a Adobe PhotoShop stream, value "psd".TODO
TODO
- See Also:
- Constant Field Values
-
T_TIFF
public static final String T_TIFF
Constant which can be used as a file suffix to indicate a TIFF stream, value "tiff".Intentionally detects only the little endian tiff images ("II" in the spec).
FIXME: Collision or supertype of
T_LDF
?http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
- See Also:
- Constant Field Values
-
T_LDF
public static final String T_LDF
Constant which can be used as a file suffix to indicate aTBD
stream, value "ldf".FIXME: Collision or subtype of
T_TIFF
?TODO
- See Also:
- Constant Field Values
-
T_SGI_RGB
public static final String T_SGI_RGB
Constant which can be used as a file suffix to indicate an SGI RGB stream, value "rgb"."474 saved as a short" 474 = 0x01DA
http://paulbourke.net/dataformats/sgirgb/sgiversion.html
- See Also:
- Constant Field Values
-
T_DDS
public static final String T_DDS
Constant which can be used as a file suffix to indicate a DirectDraw Surface stream, value "dds".'D' 'D' 'S' ' ' ascii code
https://msdn.microsoft.com/en-us/library/windows/desktop/bb943991%28v=vs.85%29.aspx#File_Layout1
- See Also:
- Constant Field Values
-
T_PAM
public static final String T_PAM
Constant which can be used as a file suffix to indicate a Portable Arbitrary Map stream, NetPbm magic 7 - binary RGB and RGBA.http://netpbm.sourceforge.net/doc/pam.html
- See Also:
- Constant Field Values
-
T_PGM
public static final String T_PGM
Constant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 5 - binary grayscale.http://netpbm.sourceforge.net/doc/pgm.html
- See Also:
- Constant Field Values
-
T_PBM
public static final String T_PBM
Constant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 4 - binary monochrome.http://netpbm.sourceforge.net/doc/pbm.html
- See Also:
- Constant Field Values
-
T_3D2
public static final String T_3D2
Constant which can be used as a file suffix to indicate aTBD
stream, value "3d2".TODO
TODO
- See Also:
- Constant Field Values
-
T_3DMF
public static final String T_3DMF
Constant which can be used as a file suffix to indicate an Apple QuickDraw 3D 3DMF stream, value "3dmf".TODO
TODO
- See Also:
- Constant Field Values
-
T_92I
public static final String T_92I
Constant which can be used as a file suffix to indicate a Texas Instruments TI-92 Bitmap stream, value "92i".TODO
TODO
- See Also:
- Constant Field Values
-
T_AMFF
public static final String T_AMFF
Constant which can be used as a file suffix to indicate an Amiga metafile stream, value "amff".TODO
TODO
- See Also:
- Constant Field Values
-
T_ART
public static final String T_ART
Constant which can be used as a file suffix to indicate an America Online Art stream, value "art".TODO
TODO
- See Also:
- Constant Field Values
-
T_CALS
public static final String T_CALS
Constant which can be used as a file suffix to indicate a United States Department of Defence Continuous Acquisition and Life-cycle Support Raster stream, value "cals".TODO
http://www.fileformat.info/format/cals/egff.htm
- See Also:
- Constant Field Values
-
T_CAM
public static final String T_CAM
Constant which can be used as a file suffix to indicate aTBD
stream, value "cam".TODO
TODO
- See Also:
- Constant Field Values
-
T_CBD
public static final String T_CBD
Constant which can be used as a file suffix to indicate aTBD
stream, value "cbd".TODO
TODO
- See Also:
- Constant Field Values
-
T_CE2
public static final String T_CE2
Constant which can be used as a file suffix to indicate aTBD
stream, value "ce2".TODO
TODO
- See Also:
- Constant Field Values
-
T_CIN
public static final String T_CIN
Constant which can be used as a file suffix to indicate a Kodak Cineon System stream, value "cin".TODO
http://www.cineon.com/ff_draft.php
- See Also:
- Constant Field Values
-
T_COB
public static final String T_COB
Constant which can be used as a file suffix to indicate aTBD
stream, value "cob".TODO
TODO
- See Also:
- Constant Field Values
-
T_CPT
public static final String T_CPT
Constant which can be used as a file suffix to indicate a Corel Photo Paint stream, value "cpt".TODO
TODO
- See Also:
- Constant Field Values
-
T_CVG
public static final String T_CVG
Constant which can be used as a file suffix to indicate aTBD
stream, value "cvg".TODO
TODO
- See Also:
- Constant Field Values
-
T_DEM
public static final String T_DEM
Constant which can be used as a file suffix to indicate aTBD
stream, value "dem".TODO
TODO
- See Also:
- Constant Field Values
-
T_DPX
public static final String T_DPX
Constant which can be used as a file suffix to indicate a Digital Picture Exchange stream, value "dpx".TODO
TODO
- See Also:
- Constant Field Values
-
T_DRW
public static final String T_DRW
Constant which can be used as a file suffix to indicate aTBD
stream, value "drw".TODO
TODO
- See Also:
- Constant Field Values
-
T_DWG
public static final String T_DWG
Constant which can be used as a file suffix to indicate a Autocad drawing stream, value "dwg".TODO
TODO
- See Also:
- Constant Field Values
-
T_ECW
public static final String T_ECW
Constant which can be used as a file suffix to indicate a Hexagon Geospatial Enhanced Compression Wavelet stream, value "ecw".TODO
TODO
- See Also:
- Constant Field Values
-
T_EMF
public static final String T_EMF
Constant which can be used as a file suffix to indicate a Microsoft Windows Enhanced metafile stream, value "emf".TODO
TODO
- See Also:
- Constant Field Values
-
T_FPX
public static final String T_FPX
Constant which can be used as a file suffix to indicate a FlashPix stream, value "fpx".TODO
TODO
- See Also:
- Constant Field Values
-
T_FTS
public static final String T_FTS
Constant which can be used as a file suffix to indicate aTBD
stream, value "fts".TODO
TODO
- See Also:
- Constant Field Values
-
T_GRO
public static final String T_GRO
Constant which can be used as a file suffix to indicate aTBD
stream, value "gro".TODO
TODO
- See Also:
- Constant Field Values
-
T_HDR
public static final String T_HDR
Constant which can be used as a file suffix to indicate aTBD
stream, value "hdr".TODO
TODO
- See Also:
- Constant Field Values
-
T_HRU
public static final String T_HRU
Constant which can be used as a file suffix to indicate aTBD
stream, value "hru".TODO
TODO
- See Also:
- Constant Field Values
-
T_IMG
public static final String T_IMG
Constant which can be used as a file suffix to indicate aTBD
stream, value "img".TODO
TODO
- See Also:
- Constant Field Values
-
T_INFINI_D
public static final String T_INFINI_D
Constant which can be used as a file suffix to indicate aTBD
stream, value "infini-d".TODO
TODO
- See Also:
- Constant Field Values
-
T_IWC
public static final String T_IWC
Constant which can be used as a file suffix to indicate aTBD
stream, value "iwc".TODO
TODO
- See Also:
- Constant Field Values
-
T_J6I
public static final String T_J6I
Constant which can be used as a file suffix to indicate aTBD
stream, value "j6i".TODO
TODO
- See Also:
- Constant Field Values
-
T_JIF
public static final String T_JIF
Constant which can be used as a file suffix to indicate aTBD
stream, value "jif".TODO
TODO
- See Also:
- Constant Field Values
-
T_JP2
public static final String T_JP2
Constant which can be used as a file suffix to indicate a JPEG-2000 stream, value "jp2".TODO
TODO
- See Also:
- Constant Field Values
-
T_KDC
public static final String T_KDC
Constant which can be used as a file suffix to indicate aTBD
stream, value "kdc".TODO
TODO
- See Also:
- Constant Field Values
-
T_L64
public static final String T_L64
Constant which can be used as a file suffix to indicate aTBD
stream, value "l64".TODO
TODO
- See Also:
- Constant Field Values
-
T_LBM
public static final String T_LBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "lbm".FIXME: Collision or supertype of
T_RAD
?TODO
- See Also:
- Constant Field Values
-
T_RAD
public static final String T_RAD
Constant which can be used as a file suffix to indicate aTBD
stream, value "rad".FIXME: Collision or subtype of
T_LBM
?TODO
- See Also:
- Constant Field Values
-
T_LWF
public static final String T_LWF
Constant which can be used as a file suffix to indicate aTBD
stream, value "lwf".TODO
TODO
- See Also:
- Constant Field Values
-
T_MBM
public static final String T_MBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "mbm".TODO
TODO
- See Also:
- Constant Field Values
-
T_MGL
public static final String T_MGL
Constant which can be used as a file suffix to indicate aTBD
stream, value "mgl".TODO
TODO
- See Also:
- Constant Field Values
-
T_MIF
public static final String T_MIF
Constant which can be used as a file suffix to indicate an Imagemagick stream, value "mif".TODO
TODO
- See Also:
- Constant Field Values
-
T_MNG
public static final String T_MNG
Constant which can be used as a file suffix to indicate a Multiple-image Network Graphics stream, value "mng".TODO
TODO
- See Also:
- Constant Field Values
-
T_MPW
public static final String T_MPW
Constant which can be used as a file suffix to indicate aTBD
stream, value "mpw".TODO
TODO
- See Also:
- Constant Field Values
-
T_MSP
public static final String T_MSP
Constant which can be used as a file suffix to indicate aTBD
stream, value "msp".TODO
TODO
- See Also:
- Constant Field Values
-
T_N64
public static final String T_N64
Constant which can be used as a file suffix to indicate aTBD
stream, value "n64".TODO
TODO
- See Also:
- Constant Field Values
-
T_NCR
public static final String T_NCR
Constant which can be used as a file suffix to indicate aTBD
stream, value "ncr".TODO
TODO
- See Also:
- Constant Field Values
-
T_NFF
public static final String T_NFF
Constant which can be used as a file suffix to indicate aTBD
stream, value "nff".TODO
TODO
- See Also:
- Constant Field Values
-
T_NGG
public static final String T_NGG
Constant which can be used as a file suffix to indicate aTBD
stream, value "ngg".TODO
TODO
- See Also:
- Constant Field Values
-
T_NLM
public static final String T_NLM
Constant which can be used as a file suffix to indicate aTBD
stream, value "nlm".TODO
TODO
- See Also:
- Constant Field Values
-
T_NOL
public static final String T_NOL
Constant which can be used as a file suffix to indicate aTBD
stream, value "nol".TODO
TODO
- See Also:
- Constant Field Values
-
T_PAL
public static final String T_PAL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pal".TODO
TODO
- See Also:
- Constant Field Values
-
T_PAX
public static final String T_PAX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pax".TODO
TODO
- See Also:
- Constant Field Values
-
T_PCD
public static final String T_PCD
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcd".TODO
TODO
- See Also:
- Constant Field Values
-
T_PCL
public static final String T_PCL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pcl".TODO
TODO
- See Also:
- Constant Field Values
-
T_PIC
public static final String T_PIC
Constant which can be used as a file suffix to indicate a Softimage pic stream, value "pic".TODO
http://paulbourke.net/dataformats/softimagepic/
- See Also:
- Constant Field Values
-
T_PIX
public static final String T_PIX
Constant which can be used as a file suffix to indicate aTBD
stream, value "pix".TODO
TODO
- See Also:
- Constant Field Values
-
T_POL
public static final String T_POL
Constant which can be used as a file suffix to indicate aTBD
stream, value "pol".TODO
TODO
- See Also:
- Constant Field Values
-
T_PSP
public static final String T_PSP
Constant which can be used as a file suffix to indicate a PaintShop Pro stream, value "psp".TODO
TODO
- See Also:
- Constant Field Values
-
T_QFX
public static final String T_QFX
Constant which can be used as a file suffix to indicate aTBD
stream, value "qfx".TODO
TODO
- See Also:
- Constant Field Values
-
T_QTM
public static final String T_QTM
Constant which can be used as a file suffix to indicate aTBD
stream, value "qtm".TODO
TODO
- See Also:
- Constant Field Values
-
T_RAS
public static final String T_RAS
Constant which can be used as a file suffix to indicate a Sun Raster stream, value "ras".TODO
TODO
- See Also:
- Constant Field Values
-
T_RIX
public static final String T_RIX
Constant which can be used as a file suffix to indicate aTBD
stream, value "rix".TODO
TODO
- See Also:
- Constant Field Values
-
T_SID
public static final String T_SID
Constant which can be used as a file suffix to indicate aTBD
stream, value "sid".TODO
TODO
- See Also:
- Constant Field Values
-
T_SLD
public static final String T_SLD
Constant which can be used as a file suffix to indicate aTBD
stream, value "sld".TODO
TODO
- See Also:
- Constant Field Values
-
T_SOD
public static final String T_SOD
Constant which can be used as a file suffix to indicate aTBD
stream, value "sod".TODO
TODO
- See Also:
- Constant Field Values
-
T_WIC
public static final String T_WIC
Constant which can be used as a file suffix to indicate aTBD
stream, value "wic".TODO
TODO
- See Also:
- Constant Field Values
-
T_WLM
public static final String T_WLM
Constant which can be used as a file suffix to indicate aTBD
stream, value "wlm".TODO
TODO
- See Also:
- Constant Field Values
-
T_WMF
public static final String T_WMF
Constant which can be used as a file suffix to indicate aTBD
stream, value "wmf".TODO
TODO
- See Also:
- Constant Field Values
-
T_WPG
public static final String T_WPG
Constant which can be used as a file suffix to indicate a Wordperfect Graphics vectors stream, value "wpg".TODO
TODO
- See Also:
- Constant Field Values
-
T_WRL
public static final String T_WRL
Constant which can be used as a file suffix to indicate aTBD
stream, value "wrl".TODO
TODO
- See Also:
- Constant Field Values
-
T_XBM
public static final String T_XBM
Constant which can be used as a file suffix to indicate aTBD
stream, value "xbm".TODO
TODO
- See Also:
- Constant Field Values
-
T_XPM
public static final String T_XPM
Constant which can be used as a file suffix to indicate a X PixMap stream, value "xpm".TODO
TODO
- See Also:
- Constant Field Values
-
T_TGA
public static final String T_TGA
Constant which can be used as a file suffix to indicate a Targa stream, value "tga".- See Also:
- Constant Field Values
-
type
public final String type
The determined unique type, e.g.T_PNG
,T_JPG
, etc.Maybe
null
if undetermined, i.e.isDefined()
returnsfalse
.
-
header
public final byte[] header
The optionally read header of sizeMAGIC_MAX_SIZE
bytes as used to determine thetype
, i.e.ImageType(InputStream)
.May be
null
, iftype
has been determined otherwise, i.eImageType(String)
.The header is not being used for
hashCode()
andequals(Object)
!
-
-
Constructor Detail
-
ImageType
public ImageType(InputStream stream) throws IOException
Creates instance based on given stream.- Parameters:
stream
- stream to parse,InputStream.available()
must be ≥MAGIC_MAX_SIZE
- Throws:
IOException
- if an I/O exception occurred
-
-