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 package java.nio;
28 
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
32 
ByteBuffer(int mark, int pos, int lim, int cap)33 ByteBuffer(int mark, int pos, int lim, int cap) { super(0, 0, 0, 0, 0); throw new RuntimeException("Stub!"); }
34 
allocateDirect(int capacity)35 @libcore.util.NonNull public static java.nio.ByteBuffer allocateDirect(int capacity) { throw new RuntimeException("Stub!"); }
36 
allocate(int capacity)37 @libcore.util.NonNull public static java.nio.ByteBuffer allocate(int capacity) { throw new RuntimeException("Stub!"); }
38 
wrap(byte @libcore.util.NonNull [] array, int offset, int length)39 @libcore.util.NonNull public static java.nio.ByteBuffer wrap(byte @libcore.util.NonNull [] array, int offset, int length) { throw new RuntimeException("Stub!"); }
40 
wrap(byte @libcore.util.NonNull [] array)41 @libcore.util.NonNull public static java.nio.ByteBuffer wrap(byte @libcore.util.NonNull [] array) { throw new RuntimeException("Stub!"); }
42 
slice()43 @libcore.util.NonNull public abstract java.nio.ByteBuffer slice();
44 
slice(int index, int length)45 @libcore.util.NonNull public abstract java.nio.ByteBuffer slice(int index, int length);
46 
duplicate()47 @libcore.util.NonNull public abstract java.nio.ByteBuffer duplicate();
48 
asReadOnlyBuffer()49 @libcore.util.NonNull public abstract java.nio.ByteBuffer asReadOnlyBuffer();
50 
get()51 public abstract byte get();
52 
put(byte b)53 @libcore.util.NonNull public abstract java.nio.ByteBuffer put(byte b);
54 
get(int index)55 public abstract byte get(int index);
56 
put(int index, byte b)57 @libcore.util.NonNull public abstract java.nio.ByteBuffer put(int index, byte b);
58 
get(byte @libcore.util.NonNull [] dst, int offset, int length)59 @libcore.util.NonNull public java.nio.ByteBuffer get(byte @libcore.util.NonNull [] dst, int offset, int length) { throw new RuntimeException("Stub!"); }
60 
get(byte @libcore.util.NonNull [] dst)61 @libcore.util.NonNull public java.nio.ByteBuffer get(byte @libcore.util.NonNull [] dst) { throw new RuntimeException("Stub!"); }
62 
get(int index, byte @libcore.util.NonNull [] dst)63 @libcore.util.NonNull public java.nio.ByteBuffer get(int index, byte @libcore.util.NonNull [] dst) { throw new RuntimeException("Stub!"); }
64 
get(int index, byte @libcore.util.NonNull [] dst, int offset, int length)65 @libcore.util.NonNull public java.nio.ByteBuffer get(int index, byte @libcore.util.NonNull [] dst, int offset, int length) { throw new RuntimeException("Stub!"); }
66 
put(@ibcore.util.NonNull java.nio.ByteBuffer src)67 @libcore.util.NonNull public java.nio.ByteBuffer put(@libcore.util.NonNull java.nio.ByteBuffer src) { throw new RuntimeException("Stub!"); }
68 
put(byte @libcore.util.NonNull [] src, int offset, int length)69 @libcore.util.NonNull public java.nio.ByteBuffer put(byte @libcore.util.NonNull [] src, int offset, int length) { throw new RuntimeException("Stub!"); }
70 
put(int index, byte @libcore.util.NonNull [] src)71 @libcore.util.NonNull public java.nio.ByteBuffer put(int index, byte @libcore.util.NonNull [] src) { throw new RuntimeException("Stub!"); }
72 
put(int index, byte @libcore.util.NonNull [] src, int offset, int length)73 @libcore.util.NonNull public java.nio.ByteBuffer put(int index, byte @libcore.util.NonNull [] src, int offset, int length) { throw new RuntimeException("Stub!"); }
74 
put(byte @libcore.util.NonNull [] src)75 @libcore.util.NonNull public final java.nio.ByteBuffer put(byte @libcore.util.NonNull [] src) { throw new RuntimeException("Stub!"); }
76 
put(int index, @libcore.util.NonNull java.nio.ByteBuffer src, int offset, int length)77 @libcore.util.NonNull public final java.nio.ByteBuffer put(int index, @libcore.util.NonNull java.nio.ByteBuffer src, int offset, int length) { throw new RuntimeException("Stub!"); }
78 
hasArray()79 public final boolean hasArray() { throw new RuntimeException("Stub!"); }
80 
array()81 public final byte @libcore.util.NonNull [] array() { throw new RuntimeException("Stub!"); }
82 
arrayOffset()83 public final int arrayOffset() { throw new RuntimeException("Stub!"); }
84 
position(int newPosition)85 @libcore.util.NonNull public java.nio.Buffer position(int newPosition) { throw new RuntimeException("Stub!"); }
86 
limit(int newLimit)87 @libcore.util.NonNull public java.nio.Buffer limit(int newLimit) { throw new RuntimeException("Stub!"); }
88 
mark()89 @libcore.util.NonNull public java.nio.Buffer mark() { throw new RuntimeException("Stub!"); }
90 
reset()91 @libcore.util.NonNull public java.nio.Buffer reset() { throw new RuntimeException("Stub!"); }
92 
clear()93 @libcore.util.NonNull public java.nio.Buffer clear() { throw new RuntimeException("Stub!"); }
94 
flip()95 @libcore.util.NonNull public java.nio.Buffer flip() { throw new RuntimeException("Stub!"); }
96 
rewind()97 @libcore.util.NonNull public java.nio.Buffer rewind() { throw new RuntimeException("Stub!"); }
98 
compact()99 @libcore.util.NonNull public abstract java.nio.ByteBuffer compact();
100 
isDirect()101 public abstract boolean isDirect();
102 
toString()103 @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
104 
hashCode()105 public int hashCode() { throw new RuntimeException("Stub!"); }
106 
equals(@ibcore.util.Nullable java.lang.Object ob)107 public boolean equals(@libcore.util.Nullable java.lang.Object ob) { throw new RuntimeException("Stub!"); }
108 
compareTo(@ibcore.util.NonNull java.nio.ByteBuffer that)109 public int compareTo(@libcore.util.NonNull java.nio.ByteBuffer that) { throw new RuntimeException("Stub!"); }
110 
mismatch(@ibcore.util.NonNull java.nio.ByteBuffer that)111 public int mismatch(@libcore.util.NonNull java.nio.ByteBuffer that);
112 
order()113 @libcore.util.NonNull public final java.nio.ByteOrder order() { throw new RuntimeException("Stub!"); }
114 
order(@ibcore.util.NonNull java.nio.ByteOrder bo)115 @libcore.util.NonNull public final java.nio.ByteBuffer order(@libcore.util.NonNull java.nio.ByteOrder bo) { throw new RuntimeException("Stub!"); }
116 
alignedSlice(int unitSize)117 @libcore.util.NonNull public final java.nio.ByteBuffer alignedSlice(int unitSize) { throw new RuntimeException("Stub!"); }
118 
getChar()119 public abstract char getChar();
120 
putChar(char value)121 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(char value);
122 
getChar(int index)123 public abstract char getChar(int index);
124 
putChar(int index, char value)125 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(int index, char value);
126 
asCharBuffer()127 @libcore.util.NonNull public abstract java.nio.CharBuffer asCharBuffer();
128 
getShort()129 public abstract short getShort();
130 
putShort(short value)131 @libcore.util.NonNull public abstract java.nio.ByteBuffer putShort(short value);
132 
getShort(int index)133 public abstract short getShort(int index);
134 
putShort(int index, short value)135 @libcore.util.NonNull public abstract java.nio.ByteBuffer putShort(int index, short value);
136 
asShortBuffer()137 @libcore.util.NonNull public abstract java.nio.ShortBuffer asShortBuffer();
138 
getInt()139 public abstract int getInt();
140 
putInt(int value)141 @libcore.util.NonNull public abstract java.nio.ByteBuffer putInt(int value);
142 
getInt(int index)143 public abstract int getInt(int index);
144 
putInt(int index, int value)145 @libcore.util.NonNull public abstract java.nio.ByteBuffer putInt(int index, int value);
146 
asIntBuffer()147 @libcore.util.NonNull public abstract java.nio.IntBuffer asIntBuffer();
148 
getLong()149 public abstract long getLong();
150 
putLong(long value)151 @libcore.util.NonNull public abstract java.nio.ByteBuffer putLong(long value);
152 
getLong(int index)153 public abstract long getLong(int index);
154 
putLong(int index, long value)155 @libcore.util.NonNull public abstract java.nio.ByteBuffer putLong(int index, long value);
156 
asLongBuffer()157 @libcore.util.NonNull public abstract java.nio.LongBuffer asLongBuffer();
158 
getFloat()159 public abstract float getFloat();
160 
putFloat(float value)161 @libcore.util.NonNull public abstract java.nio.ByteBuffer putFloat(float value);
162 
getFloat(int index)163 public abstract float getFloat(int index);
164 
putFloat(int index, float value)165 @libcore.util.NonNull public abstract java.nio.ByteBuffer putFloat(int index, float value);
166 
asFloatBuffer()167 @libcore.util.NonNull public abstract java.nio.FloatBuffer asFloatBuffer();
168 
getDouble()169 public abstract double getDouble();
170 
putDouble(double value)171 @libcore.util.NonNull public abstract java.nio.ByteBuffer putDouble(double value);
172 
getDouble(int index)173 public abstract double getDouble(int index);
174 
putDouble(int index, double value)175 @libcore.util.NonNull public abstract java.nio.ByteBuffer putDouble(int index, double value);
176 
asDoubleBuffer()177 @libcore.util.NonNull public abstract java.nio.DoubleBuffer asDoubleBuffer();
178 }
179