1 package SOFA.SOFAnode.InOut; 2 3 abstract public class stringSeqHelper { 4 public static java.lang.String [] read(cz.cuni.sofa.lib.InputStream istream) throws java.io.IOException { 5 java.lang.String value[] = null; 6 int _len0 = istream.read_long(); 7 value = new java.lang.String [_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 [] value) throws java.io.IOException { 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 |