Static utility functions for ImageType to determine the ImageType#type.
More...
|
| static String | getFileSuffix (final InputStream stream) throws IOException |
| | Determines the file suffix (i.e the image format) of the given InputStream. More...
|
| |
| static String | getFileSuffix (InputStream stream, final byte[] b) throws IOException |
| | Determines the file suffix (i.e the image format) of the given InputStream. More...
|
| |
| 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. More...
|
| |
Static utility functions for ImageType to determine the ImageType#type.
- Since
- 2.3.2
Definition at line 1085 of file ImageType.java.
◆ getFileSuffix() [1/3]
| static String com.jogamp.opengl.util.texture.ImageType.Util.getFileSuffix |
( |
final byte[] |
b | ) |
|
|
static |
Determines the file suffix (i.e the image format) of the given bytes from the header of a file.
- Parameters
-
- Returns
- the file suffix if any, otherwise
null
- Exceptions
-
| java.io.IOException | if an I/O exception occurred |
Definition at line 1142 of file ImageType.java.
◆ getFileSuffix() [2/3]
| static String com.jogamp.opengl.util.texture.ImageType.Util.getFileSuffix |
( |
final InputStream |
stream | ) |
throws IOException |
|
static |
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 MAGIC_MAX_SIZE bytes of read-ahead.
- Parameters
-
- Returns
- the file suffix if any, otherwise
null
- Exceptions
-
| java.io.IOException | if an I/O exception occurred |
Definition at line 1095 of file ImageType.java.
◆ getFileSuffix() [3/3]
| static String com.jogamp.opengl.util.texture.ImageType.Util.getFileSuffix |
( |
InputStream |
stream, |
|
|
final byte[] |
b |
|
) |
| throws IOException |
|
static |
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 MAGIC_MAX_SIZE bytes of read-ahead.
- Parameters
-
- Returns
- the file suffix if any, otherwise
null
- Exceptions
-
| java.io.IOException | if an I/O exception occurred |
Definition at line 1108 of file ImageType.java.
The documentation for this class was generated from the following file: