With some minor adjustments, the Java IPC stream reader could be more friendly to allow for low level message processing. By that I mean reading a stream and examining messages without necessarily having to load the Record Batch data. These include
- Separate MessageChannelReader.readNextMessage to allow access to the buffer containing the message.
- MessageChannelReader input channel should be protected
- ArrowStreamWriter should make the message to end a stream static
- WriteChannel intToBytes could write to existing bytes or byte buffer instead of creating new array