3 ms·
> InputStream/OutputStream I think I missed the announcement of those being "legacy" APIs? They show up all over the place including in libraries, what is the
by ahtihn 4y ago
> InputStream/OutputStream
I think I missed the announcement of those being "legacy" APIs? They show up all over the place including in libraries, what is the replacement?
- tadfisher 4y agoThe modern versions of these are Channel APIs in java.nio. The "N" in nio stands for "New" even though it was introduced in Java 1.4.
- kaba0 4y agoBut the old ones aren’t superseded the same way Date is, though. You are perfectly fine using them and in fact will perform similarly well due to Loom (which has actually reimplemented them on top of async APIs)