default InputStream toInputStream() {
        return StreamMessage.super.toInputStream(Function.identity());
    }
Adapts this {@link ByteStreamMessage} to {@link InputStream}.

<p>For example:<pre>{@code
ByteStreamMessage streamMessage = ByteStreamMessage.of(...);
InputStream inputStream = streamMessage.toInputStream();
byte[] expected = "foobarbaz".getBytes();

ByteBuf result = Unpooled.buffer();
int read;
while ((read = inputStream.read()) != -1) {
    result.writeByte(read);
}

int readableBytes = result.readableBytes();
byte[] actual = new byte[readableBytes];
for (int i = 0; i < readableBytes; i++) {
    actual[i] = result.readByte();
}
assert Arrays.equals(actual, expected);
assert inputStream.available() == 0;
}</pre>
core/src/main/java/com/linecorp/armeria/common/stream/ByteStreamMessage.java