Package digilib.io
Class ImageStream
- java.lang.Object
-
- digilib.io.ImageInput
-
- digilib.io.ImageStream
-
- Direct Known Subclasses:
ImageCacheStream
public class ImageStream extends ImageInput
- Author:
- casties
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class digilib.io.ImageInput
ImageInput.InputTag
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStream
stream
-
Fields inherited from class digilib.io.ImageInput
mimetype, pixelSize, tags, tileSize
-
-
Constructor Summary
Constructors Constructor Description ImageStream(InputStream stream, String mimeType)
Create ImageStream from InputStream and String.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
Returns the input as InputStream (if available)boolean
hasInputStream()
Returns if the input can be returned as InputStream.void
setInputStream(InputStream stream)
-
Methods inherited from class digilib.io.ImageInput
getAspect, getFile, getImageInputStream, getMimetype, getSize, getTags, getTileSize, hasFile, hasImageInputStream, hasMimetype, hasTag, isChecked, setMimetype, setSize, setTag, setTags, setTileSize
-
-
-
-
Field Detail
-
stream
protected InputStream stream
-
-
Constructor Detail
-
ImageStream
public ImageStream(InputStream stream, String mimeType)
Create ImageStream from InputStream and String.- Parameters:
stream
- the InputStreammimeType
- the mime-type
-
-
Method Detail
-
hasInputStream
public boolean hasInputStream()
Description copied from class:ImageInput
Returns if the input can be returned as InputStream.- Overrides:
hasInputStream
in classImageInput
- Returns:
- has InputStream
-
getInputStream
public InputStream getInputStream()
Description copied from class:ImageInput
Returns the input as InputStream (if available)- Overrides:
getInputStream
in classImageInput
- Returns:
- the InputStream
-
setInputStream
public void setInputStream(InputStream stream)
- Parameters:
stream
- the stream to set
-
-