This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what's the point of java.nio?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]