Skip to main content

NotesStream

Properties

NameDescription
BytesRead-only. The size of the stream in bytes.
Charset (NotesStream)Read-only. Character set used by the external data source.
IsEOSRead-only. Indicates whether the selected position is at the end of the stream.
IsReadOnlyRead-only. Indicates that the stream is associated with a read-only file.
Parent (NotesStream)Read-only. The session that contains a NotesStream object.
Position (NotesStream)Read-write. Offset from the beginning of the stream in bytes.

Methods

NameDescription
Close (NotesStream)Releases the file, if any, associated with the stream.
Open (NotesStream)Associates a file with a stream.
ReadReads bytes from a stream.
ReadTextReads text lines from a stream.
TruncateDeletes the contents of a stream.
WriteWrites bytes to a stream.
WriteTextWrites text to a stream.

Examples

NameDescription
Examples: Bytes propertyThis example gets the total bytes of all the normal files in a directory by opening each file as a stream and getting the Byte property.
Examples: Charset property (NotesStream)This agent uses the file "CHARACTERS.TRK" with Turkish (ISO-8859-4) characters in it to create a message. To correctly display the message, your machine…
Examples: Close method (NotesStream)This example gets information on the normal files in a directory by opening each file as a stream. The agent reuses the same NotesStream object by…
Examples: IsEOS propertyThis agent reads and processes blocks of bytes until end of stream occurs.
Examples: IsReadOnly propertyThis agent opens a stream for a file and writes to it. If the file is read-only, the agent exits.
Examples: Open method (NotesStream)1. This example gets information on the normal files in a directory by opening each file as a stream. The agent reuses the same NotesStream object by…
Examples: Position property (NotesStream)This agent writes the content of the Body item of the selected document to a stream, then positions the stream to the beginning (0) before reading from it.