[jdom-interest] maximum String length?

Cem Karan Cem.Karan at usa.alcatel.com
Mon Jul 9 10:25:43 PDT 2001


Hey all, I hope someone can answer this.  I need to store a moderately
long String in an XML file as a single String.  That means that when I
access it, I'm going to be getting back something that is somewhere
under 10,000 characters long.  I have plenty of memory for this
application, so I'm not worried about allocating a String thats that
size, but I don't know if there is a built-in limitation in either Java
or JDom.  I know that in pascal, the first byte is always used to
indicate the length of the String, which is why its limited to 255
characters in a string, but I haven't seen anything indicating if Java
or JDom has this type of limitation or not.  Does anyone know for sure?

Thanks,
Cem Karan



More information about the jdom-interest mailing list