When using Google's FlatBuffer, the type that ends up being used is a ByteBuffer
(which can just wrap a byte[]
). I am using this with an HttpServletResponse
. The problem becomes the Servlets PrintWriter
does not offer byte[]
or ByteBuffer
writing.
Any tips in being able to output from an HttpServletResponse
without having to copy the ByteBuffer
/byte[]
into another type?