When calling a Java™ method with an expression evaluating to a TEXT, the runtime system converts the TEXT handle to an instance of the com.fourjs.fgl.lang.FglTextBlob class implemented in FGLDIR/lib/fgl.jar. You can then manipulate the LOB from within the Java code.
You must add FGLDIR/lib/fgl.jar to the class path in order to compile Java code with com.fourjs.fgl.lang.FglTextBlob class.
The com.fourjs.fgl.lang.FglTextBlob class implements following:
Method | Description |
---|---|
String toString() |
Converts the large text data to a simple String. |
static void valueOf( String val) |
Creates a new FglTextBlob object from a String. |
public static void useByte(FglTextBlob t) throws ParseException { String s = t.toString(); ... }
IMPORT JAVA com.fourjs.fgl.lang.FglTextBlob MAIN DEFINE jtext com.fourjs.fgl.lang.FglTextBlob LET jtext = FglTextBlob.valueOf("abcdef..........") DISPLAY jtext.toString() END MAIN