KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > TR > ComponentInfoSeqHelper


1 package SOFA.SOFAnode.TR;
2
3 abstract public class ComponentInfoSeqHelper {
4   public static SOFA.SOFAnode.TR.ComponentInfo[] read(cz.cuni.sofa.lib.InputStream istream) throws java.io.IOException JavaDoc {
5     SOFA.SOFAnode.TR.ComponentInfo value[] = null;
6     int _len0 = istream.read_long();
7     value = new SOFA.SOFAnode.TR.ComponentInfo[_len0];
8     for (int _o0 = 0; _o0 < (value.length); _o0++) {
9       value[_o0] = SOFA.SOFAnode.TR.ComponentInfoHelper.read(istream);
10     }
11     return value;
12   }
13   
14   public static void write(cz.cuni.sofa.lib.OutputStream ostream, SOFA.SOFAnode.TR.ComponentInfo[] value) throws java.io.IOException JavaDoc {
15     ostream.write_long(value.length);
16     for (int _i0 = 0; _i0 < (value.length); _i0++) {
17       SOFA.SOFAnode.TR.ComponentInfoHelper.write(ostream, value[_i0]);
18     }
19   }
20   
21 }
22
Popular Tags