Stream.streamClose()

DESCRIPTION

Close the write direction of the stream. This will make the other end reach end of file when reading from a stream when all sent data has been received and acknowledged.

A call to this function does not affect the read direction of the stream.

Note: Odd name is to distinguish from AutoCloseable’s close() with very different semantics.

DECLARATION

    public void streamClose()

THROWS EXCEPTIONS

NabtoRuntimeException:
With error code STOPPED if the stream is stopped.
NabtoRuntimeException:
With error code OPERATION_IN_PROGRESS if another stop is in progress.
NabtoRuntimeException:
With error code INVALID_STATE if the stream is not opened yet.