improve LWXMLEventQueueWriter, ByteArrayOutputStream, CharArrayWriter