Mercurial > hg > digilib-old
view servlet/src/digilib/io/ImageStream.java @ 887:5969c1b99f41 jquery
Merge from stream branch
40ee7247da1761ab92bddadda2ebe46b1ca04a16
author | robcast |
---|---|
date | Wed, 06 Apr 2011 10:12:33 +0200 |
parents | 69bc69381ac4 |
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; } }