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.

ExceptionGeneration condition
NullPointerExceptionnull is specified for the parameter.
SDPClientCommunicationExceptionA communication exception occurred during RMI connection.
SDPClientException
  • A nonexistent group name or stream name is specified.
  • The same SDPConnector type object was already used to connect to the same input stream.
  • A stream that is not an input stream is specified.
  • The connector was already closed.

Return value

The input stream (StreamInput type object) that was connected