what's the point of java.nio?

Adam Megacz megacz@gcc.gnu.org
Mon May 31 05:23:00 GMT 2004


Bart Locanthi <bart@sabl.com> writes:
> * scatter/gather i/o

Hrm, okay, this sort of makes sense. But couldn't they just have made
InputStream take an array of byte[]'s (a byte[][])?
> * platform-independent adjustable byte ordering

IMHO all this requires is two new methods on each of the numeric
wrapper classes:
 Integer.fromLittleEndian(byte[], int offset)
 Integer.fromBigEndian(byte[], int offset)
 - a


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /