This PR includes always-on support for STMPUTF8. To make it happen a new class Utf8InputStreamReader was created for UTF-8 that doesn't buffer unnecessarily (java.io.InputStreamReader buffers extra for performance reasons which is a problem for us because command have different uses of the underlying InputStream and we can't lose bytes between commands). The new Reader has full test coverage (for what that's worth).
I think InputStreamReader may do more buffering than absolutely necessary (underlying inputStream may get reused by another Command so don't want any unused bytes in another Command). I'll investigate further.
See #132
This PR includes always-on support for STMPUTF8. To make it happen a new class
Utf8InputStreamReader
was created for UTF-8 that doesn't buffer unnecessarily (java.io.InputStreamReader
buffers extra for performance reasons which is a problem for us because command have different uses of the underlyingInputStream
and we can't lose bytes between commands). The new Reader has full test coverage (for what that's worth).