Package adams.data.io.output
Interface StreamableDataContainerWriter<T extends DataContainer>
-
- All Superinterfaces:
AdditionalInformationHandler,CleanUpHandler,Comparable,DataContainerWriter<T>,Destroyable,FileFormatHandler,OptionHandler,ShallowCopySupporter<DataContainerWriter>
- All Known Subinterfaces:
StreamableBinaryDataContainerWriter<T>,StreamableTextBasedDataContainerWriter<T>
- All Known Implementing Classes:
DataContainerToByteArray.DummyWriter,DataContainerToString.DummyWriter
public interface StreamableDataContainerWriter<T extends DataContainer> extends DataContainerWriter<T>
Interface forDataContainerWriterclasses that can write toOutputStreams.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanwrite(OutputStream stream, List<T> data)Performs checks and writes the data to the stream.booleanwrite(OutputStream stream, T data)Performs checks and writes the data to the stream.-
Methods inherited from interface adams.core.AdditionalInformationHandler
getAdditionalInformation
-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface adams.data.io.output.DataContainerWriter
canWriteMultiple, getOutput, isOutputFile, outputTipText, setOutput, write, write
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.io.FileFormatHandler
getDefaultFormatExtension, getFormatDescription, getFormatExtensions
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
write
boolean write(OutputStream stream, T data)
Performs checks and writes the data to the stream.- Parameters:
stream- the stream to write todata- the data to write- Returns:
- true if successfully written
- See Also:
write(OutputStream stream, List)
-
write
boolean write(OutputStream stream, List<T> data)
Performs checks and writes the data to the stream.- Parameters:
stream- the stream to write todata- the data to write- Returns:
- true if successfully written
-
-