openStreamInput(String group_name,String stream_name) method
Format
StreamInput openStreamInput(String group_name,String stream_name)
Explanation
Connects to the input stream that corresponds to the group name and stream name specified in the parameters. An SDPConnector type object cannot connect to a stream with the same name more than once.
Parameters
group_name
Specifies a query group name.
stream_name
Specifies a stream name.
Exceptions
The following table shows the exceptions and the conditions for their generation.
Exception | Generation condition |
---|---|
NullPointerException | null is specified for the parameter. |
SDPClientCommunicationException | A communication exception occurred during RMI connection. |
SDPClientException |
|
Return value
The input stream (StreamInput type object) that was connected