Bytes (Stream - Java)

Read-only. The size of the stream in bytes.

Defined in

Stream

Data type

int

Syntax

public int getBytes()
    throws NotesException

Usage

This property is 0 for a new stream.

The open method sets this property to:

  • 0 for a new file
  • the number of bytes in the file for an existing file

The write method and writeText method increment this property by the number of bytes written to the stream.

The size excludes any detected Unicode signatures or byte order marks.

Example