List of utility methods to do DataOutput Write String
void | writeString(String s, DataOutput stream) write String if (s == null) { stream.writeInt(-1); return; final int len = s.length(); stream.writeInt(len); if (len == 0) { return; ... |
void | writeString(String s, DataOutput stream) write String if (s == null) { stream.writeInt(-1); return; char[] chars = s.toCharArray(); byte[] bytes = new byte[chars.length * 2]; stream.writeInt(chars.length); for (int i = 0, i2 = 0; i < chars.length; i++, i2 += 2) { ... |