Package mgui.interfaces.io
Interface DataInputStream<T extends MguiNumber>
- Type Parameters:
T
- Number type for this input stream.
- All Known Subinterfaces:
DataInputStreamNamedXY<T>
,DataInputStreamXY<T>
,DynamicModelEnvironmentInputStream
- All Known Implementing Classes:
DataBridge
,DataBridgeNamedXY
,DataBridgeXY
public interface DataInputStream<T extends MguiNumber>
Represents an input stream of a specific number type.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description void
addInputStreamListener(DataInputStreamListener<T> l)
void
close()
Closes this stream.java.util.List<T>
getData()
Returns a sample of the current state of this input stream.byte[]
getDataAsBytes()
Returns a sample of the current state of this stream as a byte array.void
removeInputStreamListener(DataInputStreamListener<T> l)
-
Method Details
-
getData
Returns a sample of the current state of this input stream.- Returns:
- Throws:
java.io.IOException
-
getDataAsBytes
byte[] getDataAsBytes() throws java.io.IOExceptionReturns a sample of the current state of this stream as a byte array.- Returns:
- Throws:
java.io.IOException
-
close
void close()Closes this stream. -
addInputStreamListener
-
removeInputStreamListener
-