Package adams.data.io.output
Interface OutputStreamImageWriter<T extends AbstractImageContainer>
-
- All Superinterfaces:
Destroyable
,FileFormatHandler
,ImageWriter<T>
,OptionHandler
- All Known Implementing Classes:
ApacheCommonsImageWriter
,JAIImageWriter
public interface OutputStreamImageWriter<T extends AbstractImageContainer> extends ImageWriter<T>
Interface for image writers that can write to output streams.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
write(OutputStream stream, T cont)
Writes the image to 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.output.ImageWriter
getCorrespondingReader, isAvailable, write
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
write
String write(OutputStream stream, T cont)
Writes the image to the stream. Callers must close the stream.- Parameters:
stream
- the stream to write tocont
- the image container to write- Returns:
- null if successfully written, otherwise error message
-
-