Mercurial > hg > digilib-old
view common/src/main/java/digilib/io/ImageStream.java @ 1006:c9c9621eb1e6
CLOSED - # 24: action "digilibUrl" for getting a full digilib url
https://it-dev.mpiwg-berlin.mpg.de/tracs/digilib/ticket/24
author | robcast |
---|---|
date | Tue, 14 Feb 2012 18:36:12 +0100 |
parents | 28d007673346 |
children |
line wrap: on
line source
/** * */ package digilib.io; import java.io.InputStream; /** * @author casties * */ public class ImageStream extends ImageInput { protected InputStream stream = null; /** Create ImageStream from InputStream and String. * * @param stream * @param mimeType mime-type */ 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; } }