1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 2000, 2013, 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 29 package java.nio; 30 31 import android.compat.annotation.UnsupportedAppUsage; 32 33 @SuppressWarnings({"unchecked", "deprecation", "all"}) 34 public abstract class ByteBuffer extends java.nio.Buffer 35 implements java.lang.Comparable<java.nio.ByteBuffer> { 36 ByteBuffer(int mark, int pos, int lim, int cap, byte[] hb, int offset)37 ByteBuffer(int mark, int pos, int lim, int cap, byte[] hb, int offset) { 38 super(0, 0, 0, 0, 0); 39 throw new RuntimeException("Stub!"); 40 } 41 ByteBuffer(int mark, int pos, int lim, int cap)42 ByteBuffer(int mark, int pos, int lim, int cap) { 43 super(0, 0, 0, 0, 0); 44 throw new RuntimeException("Stub!"); 45 } 46 allocateDirect(int capacity)47 public static java.nio.ByteBuffer allocateDirect(int capacity) { 48 throw new RuntimeException("Stub!"); 49 } 50 allocate(int capacity)51 public static java.nio.ByteBuffer allocate(int capacity) { 52 throw new RuntimeException("Stub!"); 53 } 54 wrap(byte[] array, int offset, int length)55 public static java.nio.ByteBuffer wrap(byte[] array, int offset, int length) { 56 throw new RuntimeException("Stub!"); 57 } 58 wrap(byte[] array)59 public static java.nio.ByteBuffer wrap(byte[] array) { 60 throw new RuntimeException("Stub!"); 61 } 62 slice()63 public abstract java.nio.ByteBuffer slice(); 64 duplicate()65 public abstract java.nio.ByteBuffer duplicate(); 66 asReadOnlyBuffer()67 public abstract java.nio.ByteBuffer asReadOnlyBuffer(); 68 get()69 public abstract byte get(); 70 put(byte b)71 public abstract java.nio.ByteBuffer put(byte b); 72 get(int index)73 public abstract byte get(int index); 74 put(int index, byte b)75 public abstract java.nio.ByteBuffer put(int index, byte b); 76 get(byte[] dst, int offset, int length)77 public java.nio.ByteBuffer get(byte[] dst, int offset, int length) { 78 throw new RuntimeException("Stub!"); 79 } 80 get(byte[] dst)81 public java.nio.ByteBuffer get(byte[] dst) { 82 throw new RuntimeException("Stub!"); 83 } 84 put(java.nio.ByteBuffer src)85 public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { 86 throw new RuntimeException("Stub!"); 87 } 88 put(byte[] src, int offset, int length)89 public java.nio.ByteBuffer put(byte[] src, int offset, int length) { 90 throw new RuntimeException("Stub!"); 91 } 92 put(byte[] src)93 public final java.nio.ByteBuffer put(byte[] src) { 94 throw new RuntimeException("Stub!"); 95 } 96 hasArray()97 public final boolean hasArray() { 98 throw new RuntimeException("Stub!"); 99 } 100 array()101 public final byte[] array() { 102 throw new RuntimeException("Stub!"); 103 } 104 arrayOffset()105 public final int arrayOffset() { 106 throw new RuntimeException("Stub!"); 107 } 108 compact()109 public abstract java.nio.ByteBuffer compact(); 110 isDirect()111 public abstract boolean isDirect(); 112 toString()113 public java.lang.String toString() { 114 throw new RuntimeException("Stub!"); 115 } 116 hashCode()117 public int hashCode() { 118 throw new RuntimeException("Stub!"); 119 } 120 equals(java.lang.Object ob)121 public boolean equals(java.lang.Object ob) { 122 throw new RuntimeException("Stub!"); 123 } 124 equals(byte x, byte y)125 private static boolean equals(byte x, byte y) { 126 throw new RuntimeException("Stub!"); 127 } 128 compareTo(java.nio.ByteBuffer that)129 public int compareTo(java.nio.ByteBuffer that) { 130 throw new RuntimeException("Stub!"); 131 } 132 compare(byte x, byte y)133 private static int compare(byte x, byte y) { 134 throw new RuntimeException("Stub!"); 135 } 136 order()137 public final java.nio.ByteOrder order() { 138 throw new RuntimeException("Stub!"); 139 } 140 order(java.nio.ByteOrder bo)141 public final java.nio.ByteBuffer order(java.nio.ByteOrder bo) { 142 throw new RuntimeException("Stub!"); 143 } 144 _get(int i)145 abstract byte _get(int i); 146 _put(int i, byte b)147 abstract void _put(int i, byte b); 148 getChar()149 public abstract char getChar(); 150 putChar(char value)151 public abstract java.nio.ByteBuffer putChar(char value); 152 getChar(int index)153 public abstract char getChar(int index); 154 getCharUnchecked(int index)155 abstract char getCharUnchecked(int index); 156 getUnchecked(int pos, char[] dst, int dstOffset, int length)157 abstract void getUnchecked(int pos, char[] dst, int dstOffset, int length); 158 putChar(int index, char value)159 public abstract java.nio.ByteBuffer putChar(int index, char value); 160 putCharUnchecked(int index, char value)161 abstract void putCharUnchecked(int index, char value); 162 putUnchecked(int pos, char[] dst, int srcOffset, int length)163 abstract void putUnchecked(int pos, char[] dst, int srcOffset, int length); 164 asCharBuffer()165 public abstract java.nio.CharBuffer asCharBuffer(); 166 getShort()167 public abstract short getShort(); 168 putShort(short value)169 public abstract java.nio.ByteBuffer putShort(short value); 170 getShort(int index)171 public abstract short getShort(int index); 172 getShortUnchecked(int index)173 abstract short getShortUnchecked(int index); 174 getUnchecked(int pos, short[] dst, int dstOffset, int length)175 abstract void getUnchecked(int pos, short[] dst, int dstOffset, int length); 176 putShort(int index, short value)177 public abstract java.nio.ByteBuffer putShort(int index, short value); 178 putShortUnchecked(int index, short value)179 abstract void putShortUnchecked(int index, short value); 180 putUnchecked(int pos, short[] dst, int srcOffset, int length)181 abstract void putUnchecked(int pos, short[] dst, int srcOffset, int length); 182 asShortBuffer()183 public abstract java.nio.ShortBuffer asShortBuffer(); 184 getInt()185 public abstract int getInt(); 186 putInt(int value)187 public abstract java.nio.ByteBuffer putInt(int value); 188 getInt(int index)189 public abstract int getInt(int index); 190 getIntUnchecked(int index)191 abstract int getIntUnchecked(int index); 192 getUnchecked(int pos, int[] dst, int dstOffset, int length)193 abstract void getUnchecked(int pos, int[] dst, int dstOffset, int length); 194 putInt(int index, int value)195 public abstract java.nio.ByteBuffer putInt(int index, int value); 196 putIntUnchecked(int index, int value)197 abstract void putIntUnchecked(int index, int value); 198 putUnchecked(int pos, int[] dst, int srcOffset, int length)199 abstract void putUnchecked(int pos, int[] dst, int srcOffset, int length); 200 asIntBuffer()201 public abstract java.nio.IntBuffer asIntBuffer(); 202 getLong()203 public abstract long getLong(); 204 putLong(long value)205 public abstract java.nio.ByteBuffer putLong(long value); 206 getLong(int index)207 public abstract long getLong(int index); 208 getLongUnchecked(int index)209 abstract long getLongUnchecked(int index); 210 getUnchecked(int pos, long[] dst, int dstOffset, int length)211 abstract void getUnchecked(int pos, long[] dst, int dstOffset, int length); 212 putLong(int index, long value)213 public abstract java.nio.ByteBuffer putLong(int index, long value); 214 putLongUnchecked(int index, long value)215 abstract void putLongUnchecked(int index, long value); 216 putUnchecked(int pos, long[] dst, int srcOffset, int length)217 abstract void putUnchecked(int pos, long[] dst, int srcOffset, int length); 218 asLongBuffer()219 public abstract java.nio.LongBuffer asLongBuffer(); 220 getFloat()221 public abstract float getFloat(); 222 putFloat(float value)223 public abstract java.nio.ByteBuffer putFloat(float value); 224 getFloat(int index)225 public abstract float getFloat(int index); 226 getFloatUnchecked(int index)227 abstract float getFloatUnchecked(int index); 228 getUnchecked(int pos, float[] dst, int dstOffset, int length)229 abstract void getUnchecked(int pos, float[] dst, int dstOffset, int length); 230 putFloat(int index, float value)231 public abstract java.nio.ByteBuffer putFloat(int index, float value); 232 putFloatUnchecked(int index, float value)233 abstract void putFloatUnchecked(int index, float value); 234 putUnchecked(int pos, float[] dst, int srcOffset, int length)235 abstract void putUnchecked(int pos, float[] dst, int srcOffset, int length); 236 asFloatBuffer()237 public abstract java.nio.FloatBuffer asFloatBuffer(); 238 getDouble()239 public abstract double getDouble(); 240 putDouble(double value)241 public abstract java.nio.ByteBuffer putDouble(double value); 242 getDouble(int index)243 public abstract double getDouble(int index); 244 getDoubleUnchecked(int index)245 abstract double getDoubleUnchecked(int index); 246 getUnchecked(int pos, double[] dst, int dstOffset, int length)247 abstract void getUnchecked(int pos, double[] dst, int dstOffset, int length); 248 putDouble(int index, double value)249 public abstract java.nio.ByteBuffer putDouble(int index, double value); 250 putDoubleUnchecked(int index, double value)251 abstract void putDoubleUnchecked(int index, double value); 252 putUnchecked(int pos, double[] dst, int srcOffset, int length)253 abstract void putUnchecked(int pos, double[] dst, int srcOffset, int length); 254 asDoubleBuffer()255 public abstract java.nio.DoubleBuffer asDoubleBuffer(); 256 isAccessible()257 public boolean isAccessible() { 258 throw new RuntimeException("Stub!"); 259 } 260 setAccessible(boolean value)261 public void setAccessible(boolean value) { 262 throw new RuntimeException("Stub!"); 263 } 264 265 boolean bigEndian = true; 266 267 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 268 final byte[] hb; 269 270 { 271 hb = new byte[0]; 272 } 273 274 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 275 boolean isReadOnly; 276 277 boolean nativeByteOrder; 278 279 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 280 final int offset; 281 282 { 283 offset = 0; 284 } 285 } 286