~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImageDecoder.java

  • Committer: Hans Joachim Desserud
  • Date: 2015-11-11 18:22:53 UTC
  • mfrom: (9.1.5 sid)
  • Revision ID: hans_joachim_desserud-20151111182253-zwi0frfm97j0wddn
  * Merge from Debian unstable.  Remaining changes:
    - d/control: Drop dependencies required for unit testing as they
      include libmockito-java which would pull maven into main, disable unit
      test execution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: TIFFImageDecoder.java 1311522 2012-04-09 23:37:59Z gadams $ */
 
18
/* $Id: TIFFImageDecoder.java 1391005 2012-09-27 13:39:57Z mehdi $ */
19
19
 
20
20
package org.apache.xmlgraphics.image.codec.tiff;
21
21
 
22
22
import java.awt.image.RenderedImage;
23
23
import java.io.IOException;
24
24
 
25
 
import org.apache.xmlgraphics.image.codec.util.ImageDecodeParam;
26
25
import org.apache.xmlgraphics.image.codec.util.ImageDecoderImpl;
27
26
import org.apache.xmlgraphics.image.codec.util.PropertyUtil;
28
27
import org.apache.xmlgraphics.image.codec.util.SeekableStream;
74
73
 
75
74
    public static final int TIFF_ICC_PROFILE                = 34675;
76
75
 
77
 
    public TIFFImageDecoder(SeekableStream input,
78
 
                            ImageDecodeParam param) {
 
76
    public TIFFImageDecoder(SeekableStream input, TIFFDecodeParam param) {
79
77
        super(input, param);
80
78
    }
81
79
 
87
85
        if  ((page < 0) || (page >= getNumPages())) {
88
86
            throw new IOException(PropertyUtil.getString("TIFFImageDecoder0"));
89
87
        }
90
 
        return new TIFFImage(input, (TIFFDecodeParam)param, page);
 
88
        return new TIFFImage(input, (TIFFDecodeParam) param, page);
91
89
    }
92
90
}