close (Stream - Java)

Releases the file, if any, associated with the stream.

Defined in

Stream

Syntax

public void close()
    throws NotesException

Usage

It is recommended that you close streams explicitly using this method, although they close implicitly at the end of their scope.

Closing a stream with zero bytes deletes the associated file.

Example