Java 1.4 NIO view buffers and arrays
Issue 1. The ByteBuffer class defines methods that can create views of a given ByteBuffer such as:
CharBuffer asCharBuffer()
DoubleBuffer asDoubleBuffer()
LongBuffer as LongBuffer()
... etc.
Why is there no corresponding method in the view buffer classes to create a ByteBuffer view? The NIO class Channel only has methods for IO using ByteBuffer so the only way I can see to write a DoubleBuffer is to 'copy' it into a ByteBuffer. Ideally I would like to create a ByteBuffer view of a DoubleBuffer and/or be able to write a DoubleBuffer directly via a Channel method.
Issue 2. Each of the NIO Buffer classes has a static method to wrap an array of a specific type with a Buffer of the same type such as:
in class ByteBuffer:
ByteBuffer wrap(byte[])
in class DoubleBuffer:
DoubleBuffer wrap(double[])
... etc.
Why is there no corresponding method to create a view array of a specific type from a Buffer of the same type? Ideally I would like to create a 'view' array backed by a Buffer of the same type

