Class Reference
IRIS for UNIX 2019.4
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%CSP] >  [TokenStream]
Private  Storage   

class %CSP.TokenStream extends %RegisteredObject

A simple xml tokenizer. NOT FOR PUBLIC USE.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
8 12


Summary

Properties
LineNo ScriptTag Tag Text Type

Methods
%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OnClose
%OriginalNamespace %PackageName %RemoveFromSaveSet %SerializeObject
%SetModified %ValidateObject GetAttrs GetTag
IsComment IsScript IsTag IsText
NextToken OpenFromFile OpenFromStream OpenFromString
QuoteHTML


Properties

• property InputHandle as %String [ Private,MultiDimensional ];
Input handle for parse routine
• property LineNo as %String;
Lien number
• property ScriptTag as %String;
Last read script tag
• property Tag as %String;
Last read Tag
• property TagParms as %String [ Private,MultiDimensional ];
Information about last tag read
• property Text as %String;
Text content of tag
• property Type as %String;
Type of tag
• property stream as %GlobalCharacterStream [ Private ];
Stream that is being processed.

Methods

• method %OnClose() as %Status
Cleanup on instance close
• method GetAttrs(ByRef attrs As %String)
Get attributes for current tag
• method GetTag() as %String
Returns a the current tag, if there is one, converted to upper-case.
• method IsComment() as %Boolean
Returns TRUE (1) if the current token is a comment.
• method IsScript() as %Boolean
Returns TRUE (1) if the current token is script.
• method IsTag() as %Boolean
Returns TRUE (1) if the current token is a tag.
• method IsText() as %Boolean
Returns TRUE (1) if the current token is text.
• method NextToken() as %Boolean
Parse for next token
• method OpenFromFile(filename As %String) as %Status
Read the items from a file and process the tags
• method OpenFromStream(stream As %CharacterStream) as %Status
Read the items from a character stream and process the tags
• method OpenFromString(string As %String) as %Status
Read the items from a string and process the tags
• classmethod QuoteHTML(text As %String) as %String
Converts text to a quoted HTML string.


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.