IsReadOnly (Stream - Java)

Indicates that the stream is associated with a read-only file.

Defined in

Stream

Data type

boolean

Syntax

public boolean isReadOnly()
    throws NotesException

Legal values

  • true indicates read-only
  • false indicates not read-only

Usage

This property is true if the stream is opened to a read-only file. Otherwise it is false.

Write operations on a read-only file throw an exception.

Example