- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Can we get the supported image types in Java
Yes, we can get the supported image types with ImageIO class in Java. The following is an example to get supported image types in Java:
Example
package my; import javax.imageio.ImageIO; public class SwingDemo { public static void main(String[] args) throws Exception { String[] imgTypes = ImageIO.getReaderFileSuffixes(); System.out.print("Supported Image Types = "); for (String type : imgTypes) { System.out.print("
" + type); } } }
Output
Supported Image Types = jpg tif tiff bmp gif png wbmp jpeg
- Related Articles
- Can we get the HTTP Response Code in Selenium with Java?
- What are the data types supported by JDBC?
- How can we get the name of the Enum constant in Java?
- What types of loops are supported in C#?
- How can we get an ID of the running process in Java 9?
- Image format supported in SAP HANA Modeling view export
- How can we separate types of dal?
- Which properties are supported by the Get-ChildItem in PowerShell?
- What are the parameters supported by Get-ChildItem in PowerShell?
- How to get supported parameters of the cmdlet in PowerShell?
- What are the different types of conditional statements supported by C#?
- How many DATE data types are supported by MySQL?
- Can We handle the RuntimeException in java?
- How can we get the structure of a MySQL view as we can get the structure of a MySQL table?
- How can we get the definition of a MySQL view as we can get the definition of a MySQL table?

Advertisements