private static XQEventDecoder pipedIn(ObjectInput in, boolean reaccessable) throws IOException {
final FastMultiByteArrayOutputStream bufOut = new FastMultiByteArrayOutputStream(BUFFERING_BLOCK_SIZE);
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();