2
* This file is a contribution to the the ContentServer project, mainly for research purposes.
4
* Copyright 2009, Christian Mahnke<cmahnke@gmail.com>.
6
* Licensed under the Apache License, Version 2.0 (the “License”);
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
10
* http://www.apache.org/licenses/LICENSE-2.0
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an “AS IS” BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
20
package de.unigoettingen.sub.commons.util.datasource;
22
import java.awt.image.RenderedImage;
23
import java.io.IOException;
26
* The Class WrappedImage is a simple wrapper for java.awt.image.RenderedImage instances.
28
public class WrappedImage implements Image {
31
protected Integer pageNr = -1;
34
protected RenderedImage image = null;
37
* Instantiates a new wrapped image.
39
* @param pagenr the page number
40
* @param image the RenderedImage
42
public WrappedImage (Integer pagenr, RenderedImage image) {
48
* @see de.unigoettingen.sub.commons.util.datasource.Image#getPageNumber()
50
public Integer getPageNumber() {
55
* @see de.unigoettingen.sub.commons.util.datasource.Image#getRenderedImage()
57
public RenderedImage getRenderedImage() throws IOException {