final ObjectOutputStream objectOut = new ObjectOutputStream(bufOut);
final XQEventDecoder decoder = new XQEventDecoder(in);
decoder.redirectTo(objectOut);
objectOut.flush();
final byte[][] buf = bufOut.toMultiByteArray();
final int totalBufSize = bufOut.size();
bufOut.clear();
// Because input of decoder fully read, this section required for re-object serialization, etc.
final FastMultiByteArrayInputStream inputBuf = new FastMultiByteArrayInputStream(buf, BUFFERING_BLOCK_SIZE, totalBufSize);