public void write(DataOutputX out) throws IOException { if (value == null) { out.writeShort(0); } else { out.writeShort(value.length); for (int i = 0; i < value.length; i++) { out.writeText(value[i]); } } }
public void write(DataOutputX out) throws IOException { if (value == null) value = empty; out.write(value); }
public DataOutputX writeDecimalArray(int[] v) throws IOException { if (v == null) { writeDecimal(0); } else { writeDecimal(v.length); for (int i = 0; i < v.length; i++) { writeDecimal(v[i]); } } return this; }
public int[] readDecimalArray(int[] data) throws IOException { int length = (int) readDecimal(); data = new int[length]; for (int i = 0; i < length; i++) { data[i] = (int) readDecimal(); } return data; }