Mercurial > hg > digilib-old
view servlet/src/digilib/io/ImageStream.java @ 819:a23c4c15a6a8 stream
clean up possible resource leaks. better behaviour with unknown image types.
author | robcast |
---|---|
date | Mon, 21 Feb 2011 22:36:35 +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; } }