public class ImageIOUtil extends Object
Constructor and Description |
---|
ImageIOUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getFileSuffix(byte[] b)
Determines the file suffix (i.e the image format) of the given bytes from the header
of a file.
|
static String |
getFileSuffix(InputStream stream)
Determines the file suffix (i.e the image format) of the given InputStream.
|
public static String getFileSuffix(InputStream stream) throws IOException
stream
- stream to checknull
IOException
- if an I/O exception occurredpublic static String getFileSuffix(byte[] b)
stream
- stream to checknull
IOException
- if an I/O exception occurredCopyright 2010 JogAmp Community.