openStreamOutput(String group_name,String stream_name) method
Format
StreamOutput openStreamOutput(String group_name,String stream_name)
Explanation
Connects to the output 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 |
|
SDPClientRelationStateException | The specified stream is in the relation state. |
Return value
The output stream (StreamOutput type object) that was connected