Position (Stream - Java)

Read-write. Offset from the beginning of the stream in bytes.

Defined in

Stream

Data type

int

Syntax

public int getPosition()
    throws NotesException
public void setPosition(int position)
    throws NotesException

Usage

A value of 0 means the beginning of the stream.

Setting this property to a negative value or a value greater than the size of the stream sets the position at end of stream.

write and writeText update this property to end of stream. Setting this property has no effect on these methods.

This property affects Read and ReadText. You should exercise care setting a value other than 0. No special support exists for multi-byte characters.

Example