[1776015 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

DataOutputStream 64KB limit

Did you know that you can not serialize Strings >64KB through a DataOutputStream?
if (utflen > 65535)
  throw new UTFDataFormatException(
    "encoded string too long: " + utflen + " bytes");

posted on 2010-12-14 10:39 UTC in Code | 0 comments | permalink