Stream.close()
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 close does not affect the read direction of the stream.
DECLARATION
public void close()
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.