view servlet/src/main/java/digilib/io/ImageStream.java @ 900:6c43597b0b08 mvnify

more pom
author robcast
date Thu, 21 Apr 2011 10:58:31 +0200
parents ba1eb2d821a2
children
line wrap: on
line source

/**
 * 
 */
package digilib.io;

import java.io.InputStream;

/**
 * @author casties
 * 
 */
public class ImageStream extends ImageInput {

    protected InputStream stream = null;

    public ImageStream(InputStream stream, String mimeType) {
        this.stream = stream;
        this.mimetype = mimeType;
    }

    /*
     * (non-Javadoc)
     * 
     * @see digilib.io.ImageInput#hasInputStream()
     */
    @Override
    public boolean hasInputStream() {
        return true;
    }

    /*
     * (non-Javadoc)
     * 
     * @see digilib.io.ImageInput#getInputStream()
     */
    @Override
    public InputStream getInputStream() {
        return stream;
    }

}