Package mgui.interfaces.io
Interface DataOutputStream<T extends MguiNumber>
- Type Parameters:
T- Number type of this stream
- All Superinterfaces:
DataSourceListener
- All Known Subinterfaces:
DataOutputStreamNamedXY<T>,DataOutputStreamXY<T>
- All Known Implementing Classes:
DataBridge,DataBridgeNamedXY,DataBridgeXY
public interface DataOutputStream<T extends MguiNumber> extends DataSourceListener
Represents an general output stream in modelGUI, of a specific data type.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description voidclose()Closes this output stream.voidsetData(java.util.List<T> data)Sets the data for this output stream.voidsetDataAsBytes(byte[] d)Sets the data for this output stream as a byte array.Methods inherited from interface mgui.interfaces.io.DataSourceListener
dataSourceEmission, dataSourceReset
-
Method Details
-
setData
Sets the data for this output stream.- Parameters:
data-- Throws:
java.io.IOException
-
setDataAsBytes
void setDataAsBytes(byte[] d) throws java.io.IOExceptionSets the data for this output stream as a byte array.- Parameters:
d-- Throws:
java.io.IOException
-
close
void close()Closes this output stream.
-