new $k.AbstractTextDocument()
Methods
cr()
Print a CR
lf()
Print a LF
- Since:
 - 4.2.1
 
print(varargs)
Print the object on the script document
| Name | Type | Description | 
|---|---|---|
varargs | 
            
            
            
                
                 Objects to print. Will be converted with toString().  | 
        
println(varargs)
Print the objects on the script document and adds a line break (LF)
| Name | Type | Description | 
|---|---|---|
varargs | 
            
            
            
                
                 Objects to print. Will be converted with toString().  | 
        
tab()
Print a tab
text() : string
Get the contents as string
Throws:
| Type | Description | 
|---|---|
| $k.exception.TypeError | If the document is based on an external stream (file etc.)  | 
            
Returns:
| Type | Description | 
|---|---|
| string | 
xmlWriter(options) : $k.XMLWriter
Returns an XML writer that writes on this document
| Name | Type | Description | 
|---|---|---|
options | 
            
            
            object | 
                
                    
                        optional
                    
                    
                        
                    
                
                 $(#jsOptionsComment)  | 
        
Throws:
| Type | Description | 
|---|---|
| $k.exception.TypeError | If the document is not stream-based  | 
            
Returns:
| Type | Description | 
|---|---|
| $k.XMLWriter |