BBjTriggerData::setReadBuffer

Description

In BBj 6.00 and higher, and in Read Trigger, this method sets the buffer which will be returned to the Read/Extract Verb.

Syntax

Return Value

Method

void

setReadBuffer(byte[] data)

Parameters

Variable

Description

data

String to be returned as the data read.

Return Value

None.

Remarks

If you change the read buffer, it is likely that in the corresponding write trigger, the developer will need to reverse this operation with setExpectedDiskData.

Example

rem 'Get the Trigger object from the BBj File System

td! = BBjAPI().getFileSystem().getTriggerData()

rem 'set the read buffer to be "Donkey"
td!.setReadBuffer("DONKEY")

See Also

BBjAPI

BBjTriggerData

ObjectVariables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.