59 introduced a regression where calling readAsync (without calling read first) will cause all data to be empty/null.
This PR moves the initialize call to readAsync, because each function eventually calls into that anyway.
The only exception to this is the read(InputStream) overload, so it remains unchanged.
59 introduced a regression where calling
readAsync
(without callingread
first) will cause all data to be empty/null.This PR moves the
initialize
call toreadAsync
, because each function eventually calls into that anyway. The only exception to this is theread(InputStream)
overload, so it remains unchanged.