[quote]>Eventually that stuff is handled automatically
Most likely it is - there are two bytes (motorola byte order) at the beginning with the file length.
Eg a muffin with “lol” looks like this:
0003 6C6F 6C
3 l o l
Well, I’ll still keep that nuke and recreate approach since it’s way simpler and I don’t see any reason for doing that the other (more complicated) way.
[/quote]
/me is silly
Those two bytes are the length information written by DataOutputStream’s writeUTF() :
However, I have a little problem with two methods…
getText()/readUTF()
setText(String text)/writeUTF(String text)
The former sounds (by convention) somewhat “displayable” and the latter leads to the asumption that there is also the other stuff, which you can find in DataIn/Outputstream like writeShort etc.
Way too much confusion for two “demoing” methods… so… hmm… how about:
writePlainText(String text)
readPlainText()
or something like that?!
Something came up which screwed my schedule a bit, but the javadoc stuff is almost done now… I just need to read over it once again (I think).