Mercurial > hg > digilib-old
view servlet/src/digilib/io/ImageStream.java @ 831:30037e93ec2a stream
helper function to show request and response header.
author | robcast |
---|---|
date | Fri, 25 Feb 2011 12:41:07 +0100 |
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; } }