I made specific methods for using with socket streams. The advantage of implementing everything needed right here is a good encapsulation. We don't call an outer class for a trivial operation. Do you really think we should depend on Unsafe here?

Which disadvantages do you see here (except of duplication of a trivial function)?