Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7418891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:58:00+00:00 2026-05-29T07:58:00+00:00

I was working with javax.imageio.ImageIO class The one provided by sun doesn’t provide support

  • 0

I was working with

javax.imageio.ImageIO class

The one provided by sun doesn’t provide support for reading .tif files. So if I try to read a .tif file, it just returns a null. Then I downloaded this api from oracle’s website and included it in the classpath. This api uses jni as was evident from a .so file in that folder. After that I didn’t have to change anything in my code and it worked. How could this happen? Wouldn’t the class names have clashed?

There were 3 things in the api that i had downloaded:

  1. clibwrapper_jiio.jar
  2. jai_imageio.jar
  3. libclib_jiio.so

I didn’t have to do any additional import. In fact, the functionality provided by the ImageIO class was enchanced

I am really curious about how this works.

Here is the class in javax.imageio package. The class has been declared as final. And it does some weird complex stuff that I can’t understand. Could someone explain how to achieve this effect with a simpler example.

http://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:58:01+00:00Added an answer on May 29, 2026 at 7:58 am

    Java’s Image IO works using the Service Provider Interface (see links below for more details).

    JavaSound works the same way. To add support for (e.g.) MP3 to JavaSound, it is only necessary to add the mp3plugin.jar of the JMF to the run-time class-path, then JavaSound can decode MP3 files as easily as it can a WAV (using the exact same classes – very funky).

    I expect the installation of JAI did a similar thing, by adding a bunch of service providers for different image types to the lib directory of the JRE.

    1. ImageWriterSpi
    2. Creating Extensible Applications With the Java Platform.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with SOAP using the javax.xml.soap package. I have a javax.xml.soap.SOAPMessage object that
I am working on the following code: import java.io.*; import javax.xml.parsers.*; import javax.xml.transform.*; import
I'm working with java, trying to use the AudioFormat Class. I have the following
I a working on a JSF2/Spring3/JPA2 project using facelets as view technology. javax.faces.DEFAULT_SUFFIX is
Modifying working form with one spot per order to multiple spots per order I
I'm using the JavaScript support in javax.script to do some basic unit testing of
When I run my jar file, i get a javax.imageio.IIOException: Can't read input file!
I'm working with javax.swing to make an aplication which generates forms from XML Schema
I'm working on a simple calculator program using java and javax.swing Basically, when you
The code import javax.sound.sampled.*; import java.io.*; public class Tester { static Thread th; public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.