I see that you can retrieve the compression type for tiff image with the .Net API, can we do the same thing with Java?
I have observed your comments. Please try to use below code to achieve your requirements.
TiffImage image = (TiffImage)Image.load(“CCITTFax4.tif”);
for (TiffFrame frame : image.getFrames())
System.out.println("compression = " + TiffCompressions.getName(TiffCompressions.class, frame.getFrameOptions().getCompression()));