KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > InOut > stringSeqHelper


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