...
This compliant solution uses a Reader
rather than an InputStream
. The Reader
class converts bytes into characters on the fly, so it avoids the hazard of splitting multibyte characters. This routine will abort if the socket provides more than 1024 characters, rather than 1024 bytes.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="539649786e7062ed-5127880f-49fc4b1c-9d3aa117-8b747f0d2f86ae81b7e8d3fb"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | Classes | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d9b77028355eb01b-0c1cbd4d-44e7495e-83c8bf30-e5b0a91cb36faf779fdc861b"><ac:plain-text-body><![CDATA[ | [[Hornig 2007 | AA. Bibliography#Hornig 07]] | Problem areas: Characters | ]]></ac:plain-text-body></ac:structured-macro> |
...