JAVA/CORBA CLASSES


writeText method
Example

Writes text to a stream.

Defined in

Stream

Syntax

public int writeText(String text)
   throws NotesException

public int writeText(String text, int endOfLine)
   throws NotesException

Parameters

String text


int endOfLine Return value

Int


Usage

This method appends the text to the end of the stream.

This method throws an exception if the stream is read-only. See IsReadOnly.

When a stream is written, property values are:


If the stream is opened on an empty file and the character set is Unicode, UTF-16, UTF-16BE, or UTF-16LE, this method writes byte order mark or signature bytes at the beginning of the stream. These bytes are transparent upon subsequent accesses of the stream with the same character set.

Language cross-reference

WriteText method in LotusScript NotesStream class

Example