Allows to classify the ImageType of an InputStream via ImageType(InputStream)
or to simply define one ImageType via ImageType(String).
| Modifier and Type | Class and Description |
|---|---|
| public static class | ImageType.
Static utility functions for |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public final byte[] | header
The optionally read header of size |
| public static final int | MAGIC_MAX_SIZE
Minimum number of bytes to determine the image data type, i.e. bytes. |
| public static final String | T_3D2
Constant which can be used as a file suffix to indicate a |
| public static final String | T_3DMF
Constant which can be used as a file suffix to indicate an Apple QuickDraw 3D 3DMF stream, value . |
| 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 . |
| public static final String | T_AMFF
Constant which can be used as a file suffix to indicate an Amiga metafile stream, value . |
| public static final String | T_ART
Constant which can be used as a file suffix to indicate an America Online Art stream, value . |
| public static final String | T_BMP
Constant which can be used as a file suffix to indicate a GIF stream, value . |
| 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 . |
| public static final String | T_CAM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_CBD
Constant which can be used as a file suffix to indicate a |
| public static final String | T_CE2
Constant which can be used as a file suffix to indicate a |
| public static final String | T_CIN
Constant which can be used as a file suffix to indicate a Kodak Cineon System stream, value . |
| public static final String | T_COB
Constant which can be used as a file suffix to indicate a |
| public static final String | T_CPT
Constant which can be used as a file suffix to indicate a Corel Photo Paint stream, value . |
| public static final String | T_CUR
Constant which can be used as a file suffix to indicate a Microsoft Windows Cursor stream, value . |
| public static final String | T_CVG
Constant which can be used as a file suffix to indicate a |
| public static final String | T_DCX
Constant which can be used as a file suffix to indicate a |
| public static final String | T_DDS
Constant which can be used as a file suffix to indicate a DirectDraw Surface stream, value . |
| public static final String | T_DEM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_DIB
Constant which can be used as a file suffix to indicate a |
| public static final String | T_DPX
Constant which can be used as a file suffix to indicate a Digital Picture Exchange stream, value . |
| public static final String | T_DRW
Constant which can be used as a file suffix to indicate a |
| public static final String | T_DWG
Constant which can be used as a file suffix to indicate a Autocad drawing stream, value . |
| 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 . |
| public static final String | T_EMF
Constant which can be used as a file suffix to indicate a Microsoft Windows Enhanced metafile stream, value . |
| public static final String | T_FPX
Constant which can be used as a file suffix to indicate a FlashPix stream, value . |
| public static final String | T_FTS
Constant which can be used as a file suffix to indicate a |
| public static final String | T_GIF
Constant which can be used as a file suffix to indicate a GIF stream, value . |
| public static final String | T_GRO
Constant which can be used as a file suffix to indicate a |
| public static final String | T_HDR
Constant which can be used as a file suffix to indicate a |
| public static final String | T_HRU
Constant which can be used as a file suffix to indicate a |
| public static final String | T_ICNS
Constant which can be used as a file suffix to indicate an Apple Icon Image stream, value . |
| public static final String | T_ICO
Constant which can be used as a file suffix to indicate a Microsoft Windows Icon stream, value . |
| public static final String | T_IMG
Constant which can be used as a file suffix to indicate a |
| public static final String | T_INFINI_D
Constant which can be used as a file suffix to indicate a |
| public static final String | T_IWC
Constant which can be used as a file suffix to indicate a |
| public static final String | T_J6I
Constant which can be used as a file suffix to indicate a |
| public static final String | T_JIF
Constant which can be used as a file suffix to indicate a |
| public static final String | T_JP2
Constant which can be used as a file suffix to indicate a JPEG-2000 stream, value . |
| public static final String | T_JPG
Constant which can be used as a file suffix to indicate a JPEG stream, value . |
| public static final String | T_KDC
Constant which can be used as a file suffix to indicate a |
| public static final String | T_L64
Constant which can be used as a file suffix to indicate a |
| public static final String | T_LBM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_LDF
Constant which can be used as a file suffix to indicate a |
| public static final String | T_LWF
Constant which can be used as a file suffix to indicate a |
| public static final String | T_MBM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_MGL
Constant which can be used as a file suffix to indicate a |
| public static final String | T_MIF
Constant which can be used as a file suffix to indicate an Imagemagick stream, value . |
| public static final String | T_MNG
Constant which can be used as a file suffix to indicate a Multiple-image Network Graphics stream, value . |
| public static final String | T_MPW
Constant which can be used as a file suffix to indicate a |
| public static final String | T_MSP
Constant which can be used as a file suffix to indicate a |
| public static final String | T_N64
Constant which can be used as a file suffix to indicate a |
| public static final String | T_NCR
Constant which can be used as a file suffix to indicate a |
| public static final String | T_NFF
Constant which can be used as a file suffix to indicate a |
| public static final String | T_NGG
Constant which can be used as a file suffix to indicate a |
| public static final String | T_NLM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_NOL
Constant which can be used as a file suffix to indicate a |
| public static final String | T_PAL
Constant which can be used as a file suffix to indicate a |
| 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. |
| public static final String | T_PAX
Constant which can be used as a file suffix to indicate a |
| 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. |
| public static final String | T_PCD
Constant which can be used as a file suffix to indicate a |
| public static final String | T_PCL
Constant which can be used as a file suffix to indicate a |
| public static final String | T_PCX
Constant which can be used as a file suffix to indicate a |
| 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. |
| public static final String | T_PIC
Constant which can be used as a file suffix to indicate a Softimage pic stream, value . |
| public static final String | T_PIX
Constant which can be used as a file suffix to indicate a |
| public static final String | T_PNG
Constant which can be used as a file suffix to indicate a PNG stream, value . |
| public static final String | T_POL
Constant which can be used as a file suffix to indicate a |
| 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. |
| public static final String | T_PSD
Constant which can be used as a file suffix to indicate a Adobe PhotoShop stream, value . |
| public static final String | T_PSP
Constant which can be used as a file suffix to indicate a PaintShop Pro stream, value . |
| public static final String | T_QFX
Constant which can be used as a file suffix to indicate a |
| public static final String | T_QTM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_RAD
Constant which can be used as a file suffix to indicate a |
| public static final String | T_RAS
Constant which can be used as a file suffix to indicate a Sun Raster stream, value . |
| public static final String | T_RIX
Constant which can be used as a file suffix to indicate a |
| public static final String | T_SGI_RGB
Constant which can be used as a file suffix to indicate an SGI RGB stream, value . |
| public static final String | T_SID
Constant which can be used as a file suffix to indicate a |
| public static final String | T_SLD
Constant which can be used as a file suffix to indicate a |
| public static final String | T_SOD
Constant which can be used as a file suffix to indicate a |
| public static final String | T_TGA
Constant which can be used as a file suffix to indicate a Targa stream, value . |
| public static final String | T_TIFF
Constant which can be used as a file suffix to indicate a TIFF stream, value . |
| public static final String | T_WIC
Constant which can be used as a file suffix to indicate a |
| public static final String | T_WLM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_WMF
Constant which can be used as a file suffix to indicate a |
| public static final String | T_WPG
Constant which can be used as a file suffix to indicate a Wordperfect Graphics vectors stream, value . |
| public static final String | T_WRL
Constant which can be used as a file suffix to indicate a |
| public static final String | T_XBM
Constant which can be used as a file suffix to indicate a |
| public static final String | T_XPM
Constant which can be used as a file suffix to indicate a X PixMap stream, value . |
| public final String | type
The determined unique type, e.g.
Maybe |
| Access | Constructor and Description |
|---|---|
| public | ImageType(final InputStream
stream to parse, stream)InputStream#available() must be ≥ MAGIC_MAX_SIZECreates instance based on given stream. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public final int | |
| public final boolean | |
| public String |
| hash | back to summary |
|---|---|
| private final int hash | |
| header | back to summary |
|---|---|
| public final byte[] header The optionally read header of size
May be
The header is not being used for | |
| MAGIC_MAX_SIZE | back to summary |
|---|---|
| public static final int MAGIC_MAX_SIZE Minimum number of bytes to determine the image data type, i.e. bytes. | |
| T_3D2 | back to summary |
|---|---|
| public static final String T_3D2 Constant which can be used as a file suffix to indicate a TODO
| |
| T_3DMF | back to summary |
|---|---|
| public static final String T_3DMF Constant which can be used as a file suffix to indicate an Apple QuickDraw 3D 3DMF stream, value . TODO
| |
| T_92I | back to summary |
|---|---|
| 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 . TODO
| |
| T_AMFF | back to summary |
|---|---|
| public static final String T_AMFF Constant which can be used as a file suffix to indicate an Amiga metafile stream, value . TODO
| |
| T_ART | back to summary |
|---|---|
| public static final String T_ART Constant which can be used as a file suffix to indicate an America Online Art stream, value . TODO
| |
| T_BMP | back to summary |
|---|---|
| public static final String T_BMP Constant which can be used as a file suffix to indicate a GIF stream, value .
FIXME: Collision or supertype of
| |
| T_CALS | back to summary |
|---|---|
| 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 . TODO
| |
| T_CAM | back to summary |
|---|---|
| public static final String T_CAM Constant which can be used as a file suffix to indicate a TODO
| |
| T_CBD | back to summary |
|---|---|
| public static final String T_CBD Constant which can be used as a file suffix to indicate a TODO
| |
| T_CE2 | back to summary |
|---|---|
| public static final String T_CE2 Constant which can be used as a file suffix to indicate a TODO
| |
| T_CIN | back to summary |
|---|---|
| public static final String T_CIN Constant which can be used as a file suffix to indicate a Kodak Cineon System stream, value . TODO
| |
| T_COB | back to summary |
|---|---|
| public static final String T_COB Constant which can be used as a file suffix to indicate a TODO
| |
| T_CPT | back to summary |
|---|---|
| public static final String T_CPT Constant which can be used as a file suffix to indicate a Corel Photo Paint stream, value . TODO
| |
| T_CUR | back to summary |
|---|---|
| public static final String T_CUR Constant which can be used as a file suffix to indicate a Microsoft Windows Cursor stream, value . TODO
| |
| T_CVG | back to summary |
|---|---|
| public static final String T_CVG Constant which can be used as a file suffix to indicate a TODO
| |
| T_DCX | back to summary |
|---|---|
| public static final String T_DCX Constant which can be used as a file suffix to indicate a TODO
| |
| T_DDS | back to summary |
|---|---|
| public static final String T_DDS Constant which can be used as a file suffix to indicate a DirectDraw Surface stream, value . 'D' 'D' 'S' ' ' ascii code
| |
| T_DEM | back to summary |
|---|---|
| public static final String T_DEM Constant which can be used as a file suffix to indicate a TODO
| |
| T_DIB | back to summary |
|---|---|
| public static final String T_DIB Constant which can be used as a file suffix to indicate a
FIXME: Collision or subtype of
| |
| T_DPX | back to summary |
|---|---|
| public static final String T_DPX Constant which can be used as a file suffix to indicate a Digital Picture Exchange stream, value . TODO
| |
| T_DRW | back to summary |
|---|---|
| public static final String T_DRW Constant which can be used as a file suffix to indicate a TODO
| |
| T_DWG | back to summary |
|---|---|
| public static final String T_DWG Constant which can be used as a file suffix to indicate a Autocad drawing stream, value . TODO
| |
| T_ECW | back to summary |
|---|---|
| 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 . TODO
| |
| T_EMF | back to summary |
|---|---|
| public static final String T_EMF Constant which can be used as a file suffix to indicate a Microsoft Windows Enhanced metafile stream, value . TODO
| |
| T_FPX | back to summary |
|---|---|
| public static final String T_FPX Constant which can be used as a file suffix to indicate a FlashPix stream, value . TODO
| |
| T_FTS | back to summary |
|---|---|
| public static final String T_FTS Constant which can be used as a file suffix to indicate a TODO
| |
| T_GIF | back to summary |
|---|---|
| public static final String T_GIF Constant which can be used as a file suffix to indicate a GIF stream, value .
| |
| T_GRO | back to summary |
|---|---|
| public static final String T_GRO Constant which can be used as a file suffix to indicate a TODO
| |
| T_HDR | back to summary |
|---|---|
| public static final String T_HDR Constant which can be used as a file suffix to indicate a TODO
| |
| T_HRU | back to summary |
|---|---|
| public static final String T_HRU Constant which can be used as a file suffix to indicate a TODO
| |
| T_ICNS | back to summary |
|---|---|
| public static final String T_ICNS Constant which can be used as a file suffix to indicate an Apple Icon Image stream, value .
| |
| T_ICO | back to summary |
|---|---|
| public static final String T_ICO Constant which can be used as a file suffix to indicate a Microsoft Windows Icon stream, value . TODO
| |
| T_IMG | back to summary |
|---|---|
| public static final String T_IMG Constant which can be used as a file suffix to indicate a TODO
| |
| T_INFINI_D | back to summary |
|---|---|
| public static final String T_INFINI_D Constant which can be used as a file suffix to indicate a TODO
| |
| T_IWC | back to summary |
|---|---|
| public static final String T_IWC Constant which can be used as a file suffix to indicate a TODO
| |
| T_J6I | back to summary |
|---|---|
| public static final String T_J6I Constant which can be used as a file suffix to indicate a TODO
| |
| T_JIF | back to summary |
|---|---|
| public static final String T_JIF Constant which can be used as a file suffix to indicate a TODO
| |
| T_JP2 | back to summary |
|---|---|
| public static final String T_JP2 Constant which can be used as a file suffix to indicate a JPEG-2000 stream, value . TODO
| |
| T_JPG | back to summary |
|---|---|
| public static final String T_JPG Constant which can be used as a file suffix to indicate a JPEG stream, value .
| |
| T_KDC | back to summary |
|---|---|
| public static final String T_KDC Constant which can be used as a file suffix to indicate a TODO
| |
| T_L64 | back to summary |
|---|---|
| public static final String T_L64 Constant which can be used as a file suffix to indicate a TODO
| |
| T_LBM | back to summary |
|---|---|
| public static final String T_LBM Constant which can be used as a file suffix to indicate a
FIXME: Collision or supertype of
| |
| T_LDF | back to summary |
|---|---|
| public static final String T_LDF Constant which can be used as a file suffix to indicate a
FIXME: Collision or subtype of
| |
| T_LWF | back to summary |
|---|---|
| public static final String T_LWF Constant which can be used as a file suffix to indicate a TODO
| |
| T_MBM | back to summary |
|---|---|
| public static final String T_MBM Constant which can be used as a file suffix to indicate a TODO
| |
| T_MGL | back to summary |
|---|---|
| public static final String T_MGL Constant which can be used as a file suffix to indicate a TODO
| |
| T_MIF | back to summary |
|---|---|
| public static final String T_MIF Constant which can be used as a file suffix to indicate an Imagemagick stream, value . TODO
| |
| T_MNG | back to summary |
|---|---|
| public static final String T_MNG Constant which can be used as a file suffix to indicate a Multiple-image Network Graphics stream, value . TODO
| |
| T_MPW | back to summary |
|---|---|
| public static final String T_MPW Constant which can be used as a file suffix to indicate a TODO
| |
| T_MSP | back to summary |
|---|---|
| public static final String T_MSP Constant which can be used as a file suffix to indicate a TODO
| |
| T_N64 | back to summary |
|---|---|
| public static final String T_N64 Constant which can be used as a file suffix to indicate a TODO
| |
| T_NCR | back to summary |
|---|---|
| public static final String T_NCR Constant which can be used as a file suffix to indicate a TODO
| |
| T_NFF | back to summary |
|---|---|
| public static final String T_NFF Constant which can be used as a file suffix to indicate a TODO
| |
| T_NGG | back to summary |
|---|---|
| public static final String T_NGG Constant which can be used as a file suffix to indicate a TODO
| |
| T_NLM | back to summary |
|---|---|
| public static final String T_NLM Constant which can be used as a file suffix to indicate a TODO
| |
| T_NOL | back to summary |
|---|---|
| public static final String T_NOL Constant which can be used as a file suffix to indicate a TODO
| |
| T_PAL | back to summary |
|---|---|
| public static final String T_PAL Constant which can be used as a file suffix to indicate a TODO
| |
| T_PAM | back to summary |
|---|---|
| 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.
| |
| T_PAX | back to summary |
|---|---|
| public static final String T_PAX Constant which can be used as a file suffix to indicate a TODO
| |
| T_PBM | back to summary |
|---|---|
| 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.
| |
| T_PCD | back to summary |
|---|---|
| public static final String T_PCD Constant which can be used as a file suffix to indicate a TODO
| |
| T_PCL | back to summary |
|---|---|
| public static final String T_PCL Constant which can be used as a file suffix to indicate a TODO
| |
| T_PCX | back to summary |
|---|---|
| public static final String T_PCX Constant which can be used as a file suffix to indicate a TODO
| |
| T_PGM | back to summary |
|---|---|
| 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.
| |
| T_PIC | back to summary |
|---|---|
| public static final String T_PIC Constant which can be used as a file suffix to indicate a Softimage pic stream, value . TODO
| |
| T_PIX | back to summary |
|---|---|
| public static final String T_PIX Constant which can be used as a file suffix to indicate a TODO
| |
| T_PNG | back to summary |
|---|---|
| public static final String T_PNG Constant which can be used as a file suffix to indicate a PNG stream, value .
| |
| T_POL | back to summary |
|---|---|
| public static final String T_POL Constant which can be used as a file suffix to indicate a TODO
| |
| T_PPM | back to summary |
|---|---|
| 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.
| |
| T_PSD | back to summary |
|---|---|
| public static final String T_PSD Constant which can be used as a file suffix to indicate a Adobe PhotoShop stream, value . TODO
| |
| T_PSP | back to summary |
|---|---|
| public static final String T_PSP Constant which can be used as a file suffix to indicate a PaintShop Pro stream, value . TODO
| |
| T_QFX | back to summary |
|---|---|
| public static final String T_QFX Constant which can be used as a file suffix to indicate a TODO
| |
| T_QTM | back to summary |
|---|---|
| public static final String T_QTM Constant which can be used as a file suffix to indicate a TODO
| |
| T_RAD | back to summary |
|---|---|
| public static final String T_RAD Constant which can be used as a file suffix to indicate a
FIXME: Collision or subtype of
| |
| T_RAS | back to summary |
|---|---|
| public static final String T_RAS Constant which can be used as a file suffix to indicate a Sun Raster stream, value . TODO
| |
| T_RIX | back to summary |
|---|---|
| public static final String T_RIX Constant which can be used as a file suffix to indicate a TODO
| |
| T_SGI_RGB | back to summary |
|---|---|
| public static final String T_SGI_RGB Constant which can be used as a file suffix to indicate an SGI RGB stream, value . "474 saved as a short" 474 = 0x01DA
| |
| T_SID | back to summary |
|---|---|
| public static final String T_SID Constant which can be used as a file suffix to indicate a TODO
| |
| T_SLD | back to summary |
|---|---|
| public static final String T_SLD Constant which can be used as a file suffix to indicate a TODO
| |
| T_SOD | back to summary |
|---|---|
| public static final String T_SOD Constant which can be used as a file suffix to indicate a TODO
| |
| T_TGA | back to summary |
|---|---|
| public static final String T_TGA Constant which can be used as a file suffix to indicate a Targa stream, value . | |
| T_TIFF | back to summary |
|---|---|
| public static final String T_TIFF Constant which can be used as a file suffix to indicate a TIFF stream, value . Intentionally detects only the little endian tiff images ("II" in the spec).
FIXME: Collision or supertype of
| |
| T_WIC | back to summary |
|---|---|
| public static final String T_WIC Constant which can be used as a file suffix to indicate a TODO
| |
| T_WLM | back to summary |
|---|---|
| public static final String T_WLM Constant which can be used as a file suffix to indicate a TODO
| |
| T_WMF | back to summary |
|---|---|
| public static final String T_WMF Constant which can be used as a file suffix to indicate a TODO
| |
| T_WPG | back to summary |
|---|---|
| public static final String T_WPG Constant which can be used as a file suffix to indicate a Wordperfect Graphics vectors stream, value . TODO
| |
| T_WRL | back to summary |
|---|---|
| public static final String T_WRL Constant which can be used as a file suffix to indicate a TODO
| |
| T_XBM | back to summary |
|---|---|
| public static final String T_XBM Constant which can be used as a file suffix to indicate a TODO
| |
| T_XPM | back to summary |
|---|---|
| public static final String T_XPM Constant which can be used as a file suffix to indicate a X PixMap stream, value . TODO
| |
| type | back to summary |
|---|---|
| public final String type The determined unique type, e.g.
Maybe | |
| ImageType | back to summary |
|---|---|
| public ImageType(final InputStream stream) throws IOException Creates instance based on given stream.
| |
| ImageType | back to summary |
|---|---|
| public ImageType(final String type) Creates instance based on the given type. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDefined | back to summary |
|---|---|
| public final boolean isDefined() Returns | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
ImageType
to determine the ImageType#type.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the file suffix if any, otherwisenullstream to parse, stream)InputStream#available() must be ≥ MAGIC_MAX_SIZEDetermines the file suffix (i.e the image format) of the given InputStream. |
| public static String | Returns: the file suffix if any, otherwisenullstream to parse, stream, final byte[] InputStream#available() must be ≥ MAGIC_MAX_SIZEbyte array sink, size must be ≥ b)MAGIC_MAX_SIZEDetermines the file suffix (i.e the image format) of the given InputStream. |
| public static String | Returns: the file suffix if any, otherwisenullbyte array to parse, size must be ≥ b)MAGIC_MAX_SIZEDetermines the file suffix (i.e the image format) of the given bytes from the header of a file. |
| Util | back to summary |
|---|---|
| public Util() | |
| getFileSuffix | back to summary |
|---|---|
| public static String getFileSuffix(final InputStream stream) throws IOException Determines the file suffix (i.e the image format) of the given InputStream. The given
InputStream must return true from markSupported() and support a minimum of
| |
| getFileSuffix | back to summary |
|---|---|
| public static String getFileSuffix(InputStream stream, final byte[] b) throws IOException Determines the file suffix (i.e the image format) of the given InputStream. The given
InputStream must return true from markSupported() and support a minimum of
| |
| getFileSuffix | back to summary |
|---|---|
| public static String getFileSuffix(final byte[] b) Determines the file suffix (i.e the image format) of the given bytes from the header of a file.
| |