Pathway/iTS Web Client Programming Manual (G06.24+)
Java Import Package Reference
Compaq NonStop Pathway/iTS Web Client Programming Manual—520270-001
6-40
Class ScobolType
Method getHostLength
Purpose
Returns the number of bytes required to store the NonStop Kernel representation of the 
data.
Syntax
public abstract int getHostLength()
Return Value
Returns the number of bytes required to represent the data item in the NonStop Kernel.
Method getHostValue
Purpose
Returns the NonStop Kernel representation of the data as a byte array.
Syntax
public abstract byte [] getHostValue()
Description
The NonStop Kernel defines the data representation (bit pattern) for representing 
variables of a given type. The getHostValue() method returns the identical bit 
pattern, independent of its internal storage representation.  In other words, this method 
implements a mapping from the way data is represented in the class to the way the same 
data is represented in the NonStop Kernel.
Method setHostValue
Purpose
Updates the value of the object with the given byte array.
Syntax
public abstract void setHostValue (byte[] data)
Description
This method provides a mechanism by which the data value corresponding to the 
NonStop Kernel data representation can be stored.
data.length() must be greater than or equal to 
ScobolType.getHostLength(). After calling setHostValue(data1), if 
you call data2=getHostValue(), then data1 must be equal to data2.










