Class ImageType
- java.lang.Object
-
- com.jogamp.opengl.util.texture.ImageType
-
public class ImageType extends Object
Image type classification.Allows to classify the
ImageTypeof anInputStreamviaImageType(InputStream)or to simply define oneImageTypeviaImageType(String).- Since:
- 2.3.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageType.Util
-
Field Summary
Fields Modifier and Type Field Description byte[]headerThe optionally read header of sizeMAGIC_MAX_SIZEbytes as used to determine thetype, i.e.static intMAGIC_MAX_SIZEMinimum number of bytes to determine the image data type, i.e.static StringT_3D2Constant which can be used as a file suffix to indicate aTBDstream, value "3d2".static StringT_3DMFConstant which can be used as a file suffix to indicate an Apple QuickDraw 3D 3DMF stream, value "3dmf".static StringT_92IConstant which can be used as a file suffix to indicate a Texas Instruments TI-92 Bitmap stream, value "92i".static StringT_AMFFConstant which can be used as a file suffix to indicate an Amiga metafile stream, value "amff".static StringT_ARTConstant which can be used as a file suffix to indicate an America Online Art stream, value "art".static StringT_BMPConstant which can be used as a file suffix to indicate a GIF stream, value "bmp".static StringT_CALSConstant 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 StringT_CAMConstant which can be used as a file suffix to indicate aTBDstream, value "cam".static StringT_CBDConstant which can be used as a file suffix to indicate aTBDstream, value "cbd".static StringT_CE2Constant which can be used as a file suffix to indicate aTBDstream, value "ce2".static StringT_CINConstant which can be used as a file suffix to indicate a Kodak Cineon System stream, value "cin".static StringT_COBConstant which can be used as a file suffix to indicate aTBDstream, value "cob".static StringT_CPTConstant which can be used as a file suffix to indicate a Corel Photo Paint stream, value "cpt".static StringT_CURConstant which can be used as a file suffix to indicate a Microsoft Windows Cursor stream, value "cur".static StringT_CVGConstant which can be used as a file suffix to indicate aTBDstream, value "cvg".static StringT_DCXConstant which can be used as a file suffix to indicate aTBDstream, value "dcx".static StringT_DDSConstant which can be used as a file suffix to indicate a DirectDraw Surface stream, value "dds".static StringT_DEMConstant which can be used as a file suffix to indicate aTBDstream, value "dem".static StringT_DIBConstant which can be used as a file suffix to indicate aTBDstream, value "dib".static StringT_DPXConstant which can be used as a file suffix to indicate a Digital Picture Exchange stream, value "dpx".static StringT_DRWConstant which can be used as a file suffix to indicate aTBDstream, value "drw".static StringT_DWGConstant which can be used as a file suffix to indicate a Autocad drawing stream, value "dwg".static StringT_ECWConstant which can be used as a file suffix to indicate a Hexagon Geospatial Enhanced Compression Wavelet stream, value "ecw".static StringT_EMFConstant which can be used as a file suffix to indicate a Microsoft Windows Enhanced metafile stream, value "emf".static StringT_FPXConstant which can be used as a file suffix to indicate a FlashPix stream, value "fpx".static StringT_FTSConstant which can be used as a file suffix to indicate aTBDstream, value "fts".static StringT_GIFConstant which can be used as a file suffix to indicate a GIF stream, value "gif".static StringT_GROConstant which can be used as a file suffix to indicate aTBDstream, value "gro".static StringT_HDRConstant which can be used as a file suffix to indicate aTBDstream, value "hdr".static StringT_HRUConstant which can be used as a file suffix to indicate aTBDstream, value "hru".static StringT_ICNSConstant which can be used as a file suffix to indicate an Apple Icon Image stream, value "icns".static StringT_ICOConstant which can be used as a file suffix to indicate a Microsoft Windows Icon stream, value "ico".static StringT_IMGConstant which can be used as a file suffix to indicate aTBDstream, value "img".static StringT_INFINI_DConstant which can be used as a file suffix to indicate aTBDstream, value "infini-d".static StringT_IWCConstant which can be used as a file suffix to indicate aTBDstream, value "iwc".static StringT_J6IConstant which can be used as a file suffix to indicate aTBDstream, value "j6i".static StringT_JIFConstant which can be used as a file suffix to indicate aTBDstream, value "jif".static StringT_JP2Constant which can be used as a file suffix to indicate a JPEG-2000 stream, value "jp2".static StringT_JPGConstant which can be used as a file suffix to indicate a JPEG stream, value "jpg".static StringT_KDCConstant which can be used as a file suffix to indicate aTBDstream, value "kdc".static StringT_L64Constant which can be used as a file suffix to indicate aTBDstream, value "l64".static StringT_LBMConstant which can be used as a file suffix to indicate aTBDstream, value "lbm".static StringT_LDFConstant which can be used as a file suffix to indicate aTBDstream, value "ldf".static StringT_LWFConstant which can be used as a file suffix to indicate aTBDstream, value "lwf".static StringT_MBMConstant which can be used as a file suffix to indicate aTBDstream, value "mbm".static StringT_MGLConstant which can be used as a file suffix to indicate aTBDstream, value "mgl".static StringT_MIFConstant which can be used as a file suffix to indicate an Imagemagick stream, value "mif".static StringT_MNGConstant which can be used as a file suffix to indicate a Multiple-image Network Graphics stream, value "mng".static StringT_MPWConstant which can be used as a file suffix to indicate aTBDstream, value "mpw".static StringT_MSPConstant which can be used as a file suffix to indicate aTBDstream, value "msp".static StringT_N64Constant which can be used as a file suffix to indicate aTBDstream, value "n64".static StringT_NCRConstant which can be used as a file suffix to indicate aTBDstream, value "ncr".static StringT_NFFConstant which can be used as a file suffix to indicate aTBDstream, value "nff".static StringT_NGGConstant which can be used as a file suffix to indicate aTBDstream, value "ngg".static StringT_NLMConstant which can be used as a file suffix to indicate aTBDstream, value "nlm".static StringT_NOLConstant which can be used as a file suffix to indicate aTBDstream, value "nol".static StringT_PALConstant which can be used as a file suffix to indicate aTBDstream, value "pal".static StringT_PAMConstant which can be used as a file suffix to indicate a Portable Arbitrary Map stream, NetPbm magic 7 - binary RGB and RGBA.static StringT_PAXConstant which can be used as a file suffix to indicate aTBDstream, value "pax".static StringT_PBMConstant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 4 - binary monochrome.static StringT_PCDConstant which can be used as a file suffix to indicate aTBDstream, value "pcd".static StringT_PCLConstant which can be used as a file suffix to indicate aTBDstream, value "pcl".static StringT_PCXConstant which can be used as a file suffix to indicate aTBDstream, value "pcx".static StringT_PGMConstant which can be used as a file suffix to indicate a PGM stream, NetPbm magic 5 - binary grayscale.static StringT_PICConstant which can be used as a file suffix to indicate a Softimage pic stream, value "pic".static StringT_PIXConstant which can be used as a file suffix to indicate aTBDstream, value "pix".static StringT_PNGConstant which can be used as a file suffix to indicate a PNG stream, value "png".static StringT_POLConstant which can be used as a file suffix to indicate aTBDstream, value "pol".static StringT_PPMConstant which can be used as a file suffix to indicate a PAM stream, NetPbm magic 6 - binary RGB.static StringT_PSDConstant which can be used as a file suffix to indicate a Adobe PhotoShop stream, value "psd".static StringT_PSPConstant which can be used as a file suffix to indicate a PaintShop Pro stream, value "psp".static StringT_QFXConstant which can be used as a file suffix to indicate aTBDstream, value "qfx".static StringT_QTMConstant which can be used as a file suffix to indicate aTBDstream, value "qtm".static StringT_RADConstant which can be used as a file suffix to indicate aTBDstream, value "rad".static StringT_RASConstant which can be used as a file suffix to indicate a Sun Raster stream, value "ras".static StringT_RIXConstant which can be used as a file suffix to indicate aTBDstream, value "rix".static StringT_SGI_RGBConstant which can be used as a file suffix to indicate an SGI RGB stream, value "rgb".static StringT_SIDConstant which can be used as a file suffix to indicate aTBDstream, value "sid".static StringT_SLDConstant which can be used as a file suffix to indicate aTBDstream, value "sld".static StringT_SODConstant which can be used as a file suffix to indicate aTBDstream, value "sod".static StringT_TGAConstant which can be used as a file suffix to indicate a Targa stream, value "tga".static StringT_TIFFConstant which can be used as a file suffix to indicate a TIFF stream, value "tiff".static StringT_WICConstant which can be used as a file suffix to indicate aTBDstream, value "wic".static StringT_WLMConstant which can be used as a file suffix to indicate aTBDstream, value "wlm".static StringT_WMFConstant which can be used as a file suffix to indicate aTBDstream, value "wmf".static StringT_WPGConstant which can be used as a file suffix to indicate a Wordperfect Graphics vectors stream, value "wpg".static StringT_WRLConstant which can be used as a file suffix to indicate aTBDstream, value "wrl".static StringT_XBMConstant which can be used as a file suffix to indicate aTBDstream, value "xbm".static StringT_XPMConstant which can be used as a file suffix to indicate a X PixMap stream, value "xpm".StringtypeThe 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 booleanequals(Object o)inthashCode()booleanisDefined()Returnstrueiftypeis determined, i.e.StringtoString()
-
-
-
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 codeTODO
- 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 codehttp://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 codeFIXME: 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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 aTBDstream, 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
nullif undetermined, i.e.isDefined()returnsfalse.
-
header
public final byte[] header
The optionally read header of sizeMAGIC_MAX_SIZEbytes as used to determine thetype, i.e.ImageType(InputStream).May be
null, iftypehas 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
-
-