Home > Class Reference > ENSLIB namespace > %CSP.Portal.SourceControl.IO

%CSP.Portal.SourceControl.IO

class %CSP.Portal.SourceControl.IO extends %Library.RegisteredObject

Properties

property Device as %String;
The name of the device from which data is being captured. Note that this device will be used, and thus become the current device, when redirection is started.
Property methods: DeviceDisplayToLogical(), DeviceGet(), DeviceIsValid(), DeviceLogicalToDisplay(), DeviceLogicalToOdbc(), DeviceNormalize(), DeviceSet()
property InCapture as %Boolean [ InitialExpression = 0 ];
Flag to indicate whether a capture is underway.
Property methods: InCaptureDisplayToLogical(), InCaptureGet(), InCaptureIsValid(), InCaptureLogicalToDisplay(), InCaptureNormalize(), InCaptureSet()
property Mode as %Integer (DISPLAYLIST = ",stream,array", VALUELIST = ",1,2");
Capture mode indicating how the data should be stored.
Property methods: ModeDisplayToLogical(), ModeGet(), ModeIsValid(), ModeLogicalToDisplay(), ModeNormalize(), ModeSet()
property NewLineTranslation as %String (VALUELIST = ",,JS,HTML");
Flag indicating whether newline translation should be used.
Property methods: NewLineTranslationDisplayToLogical(), NewLineTranslationGet(), NewLineTranslationIsValid(), NewLineTranslationLogicalToDisplay(), NewLineTranslationLogicalToOdbc(), NewLineTranslationNormalize(), NewLineTranslationSet()

Methods

method ClearData(pReplacementStream As %Stream.Object = "") as %Status [ Language = objectscript ]
method GetData(Output pData) as %Status [ Language = objectscript ]
Get the data captured during the redirection. pData will be a stream object if stream mode was specified,
method ModeSet(pMode) as %Status [ Language = objectscript ]
Ensure that Data is correctly initialized whenever Mode is changed.
classmethod Redirect(Output pInstance As %CSP.Portal.SourceControl.IO, pMode As %String = "stream", pStream As %Stream.Object = "", pDevice As %String = $IO, pNewLineTranslation As %String = "") as %Status [ Language = objectscript ]
Initialize redirection and return the current %CSP.Portal.SourceControl.IO instance in pInstance. pMode can take one of two values, either "stream" or "array". pDevice defines the device which should be used as the source for the data - note that the device must already be open for the redirection to work.
method StartRedirect() as %Status [ Language = objectscript ]
Start the redirection using the current settings.
method StopRedirect() as %Status [ Language = objectscript ]
Stop the IO redirection, correct the state of InCapture and clean up the %ISCIO variable
method WriteData(data As %String) as %Status [ Language = objectscript ]
Capture the data based on the current value of Mode.

Inherited Methods

%AddToSaveSet() %DispatchSetModified() %NormalizeObject()
%ClassIsLatestVersion() %DispatchSetMultidimProperty() %ObjectModified()
%ClassName() %DispatchSetProperty() %OriginalNamespace()
%ConstructClone() %Extends() %PackageName()
%DispatchClassMethod() %GetParameter() %RemoveFromSaveSet()
%DispatchGetModified() %IsA() %SerializeObject()
%DispatchGetProperty() %IsModified() %SetModified()
%DispatchMethod() %New() %ValidateObject()

Subclasses

Ens.Util.IO