Class P4::OutputHandler

Description

The P4::OutputHandler class is a handler class that provides access to streaming output from the server. After defining the output handler, set P4#handler() to an instance of a subclass of P4::OutputHandler (or use a p4.with_handler( handler ) block) to enable callbacks.

By default, P4::OutputHandler returns P4::REPORT for all output methods. The different return options are:

Value Meaning

P4::REPORT

Messages added to output.

P4::HANDLED

Output is handled by class (don’t add message to output).

P4::CANCEL

Operation is marked for cancel, message is added to output.

Class Methods

new P4::MyHandler.new -> aP4::OutputHandler

Constructs a new subclass of P4::OutputHandler.

Instance Methods

outputBinary -> int

Process binary data.

outputInfo -> int

Process tabular data.

outputMessage -> int

Process informational or error messages.

outputStat -> int

Process tagged data.

outputText -> int

Process text data.