Package digilib.io
Class ImageStream
java.lang.Object
digilib.io.ImageInput
digilib.io.ImageStream
- Direct Known Subclasses:
ImageCacheStream
- Author:
- casties
-
Nested Class Summary
Nested classes/interfaces inherited from class digilib.io.ImageInput
ImageInput.InputTag -
Field Summary
FieldsFields inherited from class digilib.io.ImageInput
mimetype, pixelSize, tags, tileSize -
Constructor Summary
ConstructorsConstructorDescriptionImageStream(InputStream stream, String mimeType) Create ImageStream from InputStream and String. -
Method Summary
Modifier and TypeMethodDescriptionReturns the input as InputStream (if available)booleanReturns if the input can be returned as InputStream.voidsetInputStream(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 Details
-
stream
-
-
Constructor Details
-
ImageStream
Create ImageStream from InputStream and String.- Parameters:
stream- the InputStreammimeType- the mime-type
-
-
Method Details
-
hasInputStream
public boolean hasInputStream()Description copied from class:ImageInputReturns if the input can be returned as InputStream.- Overrides:
hasInputStreamin classImageInput- Returns:
- has InputStream
-
getInputStream
Description copied from class:ImageInputReturns the input as InputStream (if available)- Overrides:
getInputStreamin classImageInput- Returns:
- the InputStream
-
setInputStream
- Parameters:
stream- the stream to set
-