Package adams.data.io.input
Interface InputStreamImageReader<T extends AbstractImageContainer>
-
- All Superinterfaces:
Destroyable
,FileFormatHandler
,ImageReader<T>
,OptionHandler
- All Known Implementing Classes:
ApacheCommonsImageReader
,JAIImageReader
,PNGImageReader
public interface InputStreamImageReader<T extends AbstractImageContainer> extends ImageReader<T>
Interface for image readers that support reading from input streams.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
read(InputStream stream)
Reads the image from the stream.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.io.FileFormatHandler
getDefaultFormatExtension, getFormatDescription, getFormatExtensions
-
Methods inherited from interface adams.data.io.input.ImageReader
getCorrespondingWriter, isAvailable, read
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
read
T read(InputStream stream)
Reads the image from the stream. Caller must close the stream.- Parameters:
stream
- the stream to read from- Returns:
- the image container, null if failed to read
-
-