%Stream.DynamicCharacter
stream class %Stream.DynamicCharacter extends %Stream.Object
%Stream.DynamicCharacter character stream containing the textual value of an element of a %DynamicAbstractObject. It is particularly useful for holding the value of a %DynamicAbstractObject element with a textual value that would exceed the capacity of an ObjectScript string variable. A %Stream.DynamicCharacter object is readonly and it cannot be modified or saved. But it can be copied to any other %Stream class object that does support modification and saving.One way to create a %Stream.DynamicCharacter is by making a method call that looks like dao.%Get(key,default,"stream") where dao is an object reference to a subclass of %DynamicAbstractObject; and where key is the key name value of an element of a %DynamicObject or the index value of an element of a %DynamicArray. You can also get a %Stream.DynamicCharacter object by calling the %GetNext()(.key,.value,.type) method in one of subclasses of the %Iterator.AbstractIterator class. is by making a method call that
Property Inventory
Method Inventory
- %IsModified()
- %IsNull()
- %LocationSet()
- %NormalizeObject()
- %ObjectModified()
- %ValidateObject()
- Clear()
- CopyFrom()
- Flush()
- IsNull()
- MoveTo()
- MoveToEnd()
- OutputToDevice()
- PositionGet()
- Read()
- ReadLine()
- ReadLineIntoStream()
- Rewind()
- SizeGet()
- Write()
- WriteLine()
Parameters
Properties
Methods
This method validates an object.
The %Save() method of a persistent class calls this method before filing any objects in the database. The %ValidateObject() of a referencing object can call it. You can also call it explicitly at any time.
%ValidateObject() does the following:
- If present, it will call a user-supplied %OnValidateObject() method.
- It checks if any required property values are missing.
- If the PROPERTYVALIDATION class parameter is set to ValidateOnSave, it validates each non-null property value by calling the property method IsValid on each literal property and the %ValidateObject method for each object-valued embedded object property (properties whose type extend %SerialObject).
- If checkserial is 1, it forces the checking of any embedded object properties by calling their %ValidateObject method after swizzling this property.
- If checkserial is 2, it forces the checking of any collections of serial types by iterating over those collections and calling their %ValidateObject() method after swizzling this property, in addition to the validation that occurs when checkserial is 1.
%ValidateObject() returns a %Status indicating success or error. It is up to the caller to process the error value.
%ValidateObject() does not validate object-valued reference properties (properties whose type extends %Persistent) due to the possibility of circular dependencies between objects. The %Save() method of a persistent class automatically detects and handles circular references between objects. If you require the validation of reference properties, you can override this method in a subclass or call %Save() directly.
Not supported. %Stream.DynamicCharacter is readonly.
Not supported. %Stream.DynamicCharacter is readonly.
MoveTo()(1) is equivalent to a Rewind()(). MoveTo()(1) will always succeed and it will position the %Stream.DynamicCharacter at character position 1 even if the %Stream.DynamicCharacter contains no characters. Moving to position 1 (or earlier) will be at the first character of the stream; position 2 will be at the second character of the stream, etc.
Not supported. %Stream.DynamicCharacter is readonly.
You must call Rewind() if you want to read a stream from the beginning again. Calling Read() after Write() implicitly ends the Write() operation and rewinds to the start of the stream.
Returns a string up to len characters long. The byref argument sc will return a %Status if any error occurred during the read.
While 'stream.AtEnd { Write stream.ReadLine(,.sc,.eol) If $$$ISERR(sc) { Write "ERROR" Quit } If eol { Write ! } }
Not supported. %Stream.DynamicCharacter is readonly.
Not supported. %Stream.DynamicCharacter is readonly.
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %CheckUnique()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %IsA()
- %KillExtent()
- %LOBPrefetch()
- %LockStream()
- %New()
- %ObjectIsNull()
- %ObjectSize()
- %Oid()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %ReleaseLock()
- %Reload()
- %RemoveFromSaveSet()
- %RollBack()
- %Save()
- %SerializeObject()
- %SetModified()
- %UnlockStream()
- CopyFromAndSave()
- FindAt()
- GetStreamId()
- InputFromDevice()
- IsCharacter()
- LastModifiedGet()
- OutputToDeviceAt()
- ReadSQL()
- SerializeToSyncSet()
- StreamOIDIsNull()
- SyncStreamIn()