IData manipulation using Java

Does anyone know of a good technique for traversing an IData object whose structure is not predefined using Java? I am trying to use the java trim function to remove the whitespace from a record that was created from a positional based Flat File.

Take a look at the java services in WmSamples package under idata folder. The service that you should look at is sample.idata:walkAnIData. the method under shared tab “dumpIData” is used to walk through an IData, whose structure can be anything.


Thanks Hari, after posting this I started to look through the samples and found that same example you pointed me to. It certainly helped me to solve the problem I had.