1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27 // -- This file was mechanically generated: Do not edit! -- //
28 // Android-note: This file is generated by ojluni/src/tools/gensrc_android.sh.
29
30
31 package java.nio;
32
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
35
ByteBuffer()36 ByteBuffer() { throw new RuntimeException("Stub!"); }
37
allocateDirect(int capacity)38 public static java.nio.ByteBuffer allocateDirect(int capacity) { throw new RuntimeException("Stub!"); }
39
allocate(int capacity)40 public static java.nio.ByteBuffer allocate(int capacity) { throw new RuntimeException("Stub!"); }
41
wrap(byte[] array, int offset, int length)42 public static java.nio.ByteBuffer wrap(byte[] array, int offset, int length) { throw new RuntimeException("Stub!"); }
43
wrap(byte[] array)44 public static java.nio.ByteBuffer wrap(byte[] array) { throw new RuntimeException("Stub!"); }
45
slice()46 public abstract java.nio.ByteBuffer slice();
47
slice(int index, int length)48 public abstract java.nio.ByteBuffer slice(int index, int length);
49
duplicate()50 public abstract java.nio.ByteBuffer duplicate();
51
asReadOnlyBuffer()52 public abstract java.nio.ByteBuffer asReadOnlyBuffer();
53
get()54 public abstract byte get();
55
put(byte b)56 public abstract java.nio.ByteBuffer put(byte b);
57
get(int index)58 public abstract byte get(int index);
59
put(int index, byte b)60 public abstract java.nio.ByteBuffer put(int index, byte b);
61
get(byte[] dst, int offset, int length)62 public java.nio.ByteBuffer get(byte[] dst, int offset, int length) { throw new RuntimeException("Stub!"); }
63
get(byte[] dst)64 public java.nio.ByteBuffer get(byte[] dst) { throw new RuntimeException("Stub!"); }
65
66 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
get(int index, byte[] dst, int offset, int length)67 public java.nio.ByteBuffer get(int index, byte[] dst, int offset, int length) { throw new RuntimeException("Stub!"); }
68
69 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
get(int index, byte[] dst)70 public java.nio.ByteBuffer get(int index, byte[] dst) { throw new RuntimeException("Stub!"); }
71
put(java.nio.ByteBuffer src)72 public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { throw new RuntimeException("Stub!"); }
73
74 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
put(int index, java.nio.ByteBuffer src, int offset, int length)75 public java.nio.ByteBuffer put(int index, java.nio.ByteBuffer src, int offset, int length) { throw new RuntimeException("Stub!"); }
76
put(byte[] src, int offset, int length)77 public java.nio.ByteBuffer put(byte[] src, int offset, int length) { throw new RuntimeException("Stub!"); }
78
put(byte[] src)79 public final java.nio.ByteBuffer put(byte[] src) { throw new RuntimeException("Stub!"); }
80
81 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
put(int index, byte[] src, int offset, int length)82 public java.nio.ByteBuffer put(int index, byte[] src, int offset, int length) { throw new RuntimeException("Stub!"); }
83
84 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
put(int index, byte[] src)85 public java.nio.ByteBuffer put(int index, byte[] src) { throw new RuntimeException("Stub!"); }
86
hasArray()87 public final boolean hasArray() { throw new RuntimeException("Stub!"); }
88
array()89 public final byte[] array() { throw new RuntimeException("Stub!"); }
90
arrayOffset()91 public final int arrayOffset() { throw new RuntimeException("Stub!"); }
92
position(int newPosition)93 public java.nio.Buffer position(int newPosition) { throw new RuntimeException("Stub!"); }
94
limit(int newLimit)95 public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); }
96
mark()97 public java.nio.Buffer mark() { throw new RuntimeException("Stub!"); }
98
reset()99 public java.nio.Buffer reset() { throw new RuntimeException("Stub!"); }
100
clear()101 public java.nio.Buffer clear() { throw new RuntimeException("Stub!"); }
102
flip()103 public java.nio.Buffer flip() { throw new RuntimeException("Stub!"); }
104
rewind()105 public java.nio.Buffer rewind() { throw new RuntimeException("Stub!"); }
106
compact()107 public abstract java.nio.ByteBuffer compact();
108
isDirect()109 public abstract boolean isDirect();
110
toString()111 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
112
hashCode()113 public int hashCode() { throw new RuntimeException("Stub!"); }
114
equals(java.lang.Object ob)115 public boolean equals(java.lang.Object ob) { throw new RuntimeException("Stub!"); }
116
compareTo(java.nio.ByteBuffer that)117 public int compareTo(java.nio.ByteBuffer that) { throw new RuntimeException("Stub!"); }
118
mismatch(java.nio.ByteBuffer that)119 public int mismatch(java.nio.ByteBuffer that) { throw new RuntimeException("Stub!"); }
120
order()121 public final java.nio.ByteOrder order() { throw new RuntimeException("Stub!"); }
122
order(java.nio.ByteOrder bo)123 public final java.nio.ByteBuffer order(java.nio.ByteOrder bo) { throw new RuntimeException("Stub!"); }
124
alignmentOffset(int index, int unitSize)125 public final int alignmentOffset(int index, int unitSize) { throw new RuntimeException("Stub!"); }
126
alignedSlice(int unitSize)127 public final java.nio.ByteBuffer alignedSlice(int unitSize) { throw new RuntimeException("Stub!"); }
128
getChar()129 public abstract char getChar();
130
putChar(char value)131 public abstract java.nio.ByteBuffer putChar(char value);
132
getChar(int index)133 public abstract char getChar(int index);
134
putChar(int index, char value)135 public abstract java.nio.ByteBuffer putChar(int index, char value);
136
asCharBuffer()137 public abstract java.nio.CharBuffer asCharBuffer();
138
getShort()139 public abstract short getShort();
140
putShort(short value)141 public abstract java.nio.ByteBuffer putShort(short value);
142
getShort(int index)143 public abstract short getShort(int index);
144
putShort(int index, short value)145 public abstract java.nio.ByteBuffer putShort(int index, short value);
146
asShortBuffer()147 public abstract java.nio.ShortBuffer asShortBuffer();
148
getInt()149 public abstract int getInt();
150
putInt(int value)151 public abstract java.nio.ByteBuffer putInt(int value);
152
getInt(int index)153 public abstract int getInt(int index);
154
putInt(int index, int value)155 public abstract java.nio.ByteBuffer putInt(int index, int value);
156
asIntBuffer()157 public abstract java.nio.IntBuffer asIntBuffer();
158
getLong()159 public abstract long getLong();
160
putLong(long value)161 public abstract java.nio.ByteBuffer putLong(long value);
162
getLong(int index)163 public abstract long getLong(int index);
164
putLong(int index, long value)165 public abstract java.nio.ByteBuffer putLong(int index, long value);
166
asLongBuffer()167 public abstract java.nio.LongBuffer asLongBuffer();
168
getFloat()169 public abstract float getFloat();
170
putFloat(float value)171 public abstract java.nio.ByteBuffer putFloat(float value);
172
getFloat(int index)173 public abstract float getFloat(int index);
174
putFloat(int index, float value)175 public abstract java.nio.ByteBuffer putFloat(int index, float value);
176
asFloatBuffer()177 public abstract java.nio.FloatBuffer asFloatBuffer();
178
getDouble()179 public abstract double getDouble();
180
putDouble(double value)181 public abstract java.nio.ByteBuffer putDouble(double value);
182
getDouble(int index)183 public abstract double getDouble(int index);
184
putDouble(int index, double value)185 public abstract java.nio.ByteBuffer putDouble(int index, double value);
186
asDoubleBuffer()187 public abstract java.nio.DoubleBuffer asDoubleBuffer();
188
setAccessible(boolean value)189 public void setAccessible(boolean value) { throw new RuntimeException("Stub!"); }
190 }
191 }
192
193