Skip to main content

LensStudio:Serialization.IReader

Class

Interface for reading serialized data.

Index

Example

// IReader is the interface for reading serialized data.
// Its constructor is protected — you obtain an instance via
// Yaml.createReader(data) rather than constructing it directly.
const { Yaml } = await import('LensStudio:Serialization');

const yamlString = 'key: value';
const reader = Yaml.createReader(yamlString);
console.log('IReader instance created from YAML string:', reader);

Extends

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

ScriptObject.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

ScriptObject.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

ScriptObject.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

ScriptObject.isSame