2362N/A * Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Relative <i>get</i> method for reading $a$ $type$ value. 0N/A * <p> Reads the next $nbytes$ bytes at this buffer's current position, 0N/A * composing them into $a$ $type$ value according to the current byte order, 0N/A * and then increments the position by $nbytes$. </p> 0N/A * @return The $type$ value at the buffer's current position 0N/A * @throws BufferUnderflowException 0N/A * If there are fewer than $nbytes$ bytes 0N/A * remaining in this buffer 0N/A * Relative <i>put</i> method for writing $a$ $type$ 0N/A * value <i>(optional operation)</i>. 0N/A * <p> Writes $nbytes$ bytes containing the given $type$ value, in the 0N/A * current byte order, into this buffer at the current position, and then 0N/A * increments the position by $nbytes$. </p> 0N/A * The $type$ value to be written 0N/A * @return This buffer 0N/A * @throws BufferOverflowException 0N/A * If there are fewer than $nbytes$ bytes 0N/A * remaining in this buffer 0N/A * @throws ReadOnlyBufferException 0N/A * If this buffer is read-only 0N/A * Absolute <i>get</i> method for reading $a$ $type$ value. 0N/A * <p> Reads $nbytes$ bytes at the given index, composing them into a 0N/A * $type$ value according to the current byte order. </p> 0N/A * The index from which the bytes will be read 0N/A * @return The $type$ value at the given index 0N/A * @throws IndexOutOfBoundsException 0N/A * If <tt>index</tt> is negative 0N/A * or not smaller than the buffer's limit, 0N/A * minus $nbytesButOne$ 0N/A * Absolute <i>put</i> method for writing $a$ $type$ 0N/A * value <i>(optional operation)</i>. 0N/A * <p> Writes $nbytes$ bytes containing the given $type$ value, in the 0N/A * current byte order, into this buffer at the given index. </p> 0N/A * The index at which the bytes will be written 0N/A * The $type$ value to be written 0N/A * @return This buffer 0N/A * @throws IndexOutOfBoundsException 0N/A * If <tt>index</tt> is negative 0N/A * or not smaller than the buffer's limit, 0N/A * minus $nbytesButOne$ 0N/A * @throws ReadOnlyBufferException 0N/A * If this buffer is read-only 0N/A * Creates a view of this byte buffer as $a$ $type$ buffer. 0N/A * <p> The content of the new buffer will start at this buffer's current 0N/A * position. Changes to this buffer's content will be visible in the new 0N/A * buffer, and vice versa; the two buffers' position, limit, and mark 0N/A * values will be independent. 0N/A * <p> The new buffer's position will be zero, its capacity and its limit 0N/A * will be the number of bytes remaining in this buffer divided by 0N/A * $nbytes$, and its mark will be undefined. The new buffer will be direct 0N/A * if, and only if, this buffer is direct, and it will be read-only if, and 0N/A * only if, this buffer is read-only. </p> 0N/A * @return A new $type$ buffer