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 
30 package java.nio;
31 
32 
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public abstract class ByteBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ByteBuffer> {
35 
ByteBuffer(int mark, int pos, int lim, int cap)36 ByteBuffer(int mark, int pos, int lim, int cap) { super(0, 0, 0, 0, 0); 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 
duplicate()48 public abstract java.nio.ByteBuffer duplicate();
49 
asReadOnlyBuffer()50 public abstract java.nio.ByteBuffer asReadOnlyBuffer();
51 
get()52 public abstract byte get();
53 
put(byte b)54 public abstract java.nio.ByteBuffer put(byte b);
55 
get(int index)56 public abstract byte get(int index);
57 
put(int index, byte b)58 public abstract java.nio.ByteBuffer put(int index, byte b);
59 
get(byte[] dst, int offset, int length)60 public java.nio.ByteBuffer get(byte[] dst, int offset, int length) { throw new RuntimeException("Stub!"); }
61 
get(byte[] dst)62 public java.nio.ByteBuffer get(byte[] dst) { throw new RuntimeException("Stub!"); }
63 
put(java.nio.ByteBuffer src)64 public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { throw new RuntimeException("Stub!"); }
65 
put(byte[] src, int offset, int length)66 public java.nio.ByteBuffer put(byte[] src, int offset, int length) { throw new RuntimeException("Stub!"); }
67 
put(byte[] src)68 public final java.nio.ByteBuffer put(byte[] src) { throw new RuntimeException("Stub!"); }
69 
hasArray()70 public final boolean hasArray() { throw new RuntimeException("Stub!"); }
71 
array()72 public final byte[] array() { throw new RuntimeException("Stub!"); }
73 
arrayOffset()74 public final int arrayOffset() { throw new RuntimeException("Stub!"); }
75 
compact()76 public abstract java.nio.ByteBuffer compact();
77 
isDirect()78 public abstract boolean isDirect();
79 
toString()80 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
81 
hashCode()82 public int hashCode() { throw new RuntimeException("Stub!"); }
83 
equals(java.lang.Object ob)84 public boolean equals(java.lang.Object ob) { throw new RuntimeException("Stub!"); }
85 
compareTo(java.nio.ByteBuffer that)86 public int compareTo(java.nio.ByteBuffer that) { throw new RuntimeException("Stub!"); }
87 
order()88 public final java.nio.ByteOrder order() { throw new RuntimeException("Stub!"); }
89 
order(java.nio.ByteOrder bo)90 public final java.nio.ByteBuffer order(java.nio.ByteOrder bo) { throw new RuntimeException("Stub!"); }
91 
getChar()92 public abstract char getChar();
93 
putChar(char value)94 public abstract java.nio.ByteBuffer putChar(char value);
95 
getChar(int index)96 public abstract char getChar(int index);
97 
putChar(int index, char value)98 public abstract java.nio.ByteBuffer putChar(int index, char value);
99 
asCharBuffer()100 public abstract java.nio.CharBuffer asCharBuffer();
101 
getShort()102 public abstract short getShort();
103 
putShort(short value)104 public abstract java.nio.ByteBuffer putShort(short value);
105 
getShort(int index)106 public abstract short getShort(int index);
107 
putShort(int index, short value)108 public abstract java.nio.ByteBuffer putShort(int index, short value);
109 
asShortBuffer()110 public abstract java.nio.ShortBuffer asShortBuffer();
111 
getInt()112 public abstract int getInt();
113 
putInt(int value)114 public abstract java.nio.ByteBuffer putInt(int value);
115 
getInt(int index)116 public abstract int getInt(int index);
117 
putInt(int index, int value)118 public abstract java.nio.ByteBuffer putInt(int index, int value);
119 
asIntBuffer()120 public abstract java.nio.IntBuffer asIntBuffer();
121 
getLong()122 public abstract long getLong();
123 
putLong(long value)124 public abstract java.nio.ByteBuffer putLong(long value);
125 
getLong(int index)126 public abstract long getLong(int index);
127 
putLong(int index, long value)128 public abstract java.nio.ByteBuffer putLong(int index, long value);
129 
asLongBuffer()130 public abstract java.nio.LongBuffer asLongBuffer();
131 
getFloat()132 public abstract float getFloat();
133 
putFloat(float value)134 public abstract java.nio.ByteBuffer putFloat(float value);
135 
getFloat(int index)136 public abstract float getFloat(int index);
137 
putFloat(int index, float value)138 public abstract java.nio.ByteBuffer putFloat(int index, float value);
139 
asFloatBuffer()140 public abstract java.nio.FloatBuffer asFloatBuffer();
141 
getDouble()142 public abstract double getDouble();
143 
putDouble(double value)144 public abstract java.nio.ByteBuffer putDouble(double value);
145 
getDouble(int index)146 public abstract double getDouble(int index);
147 
putDouble(int index, double value)148 public abstract java.nio.ByteBuffer putDouble(int index, double value);
149 
asDoubleBuffer()150 public abstract java.nio.DoubleBuffer asDoubleBuffer();
151 
isAccessible()152 public boolean isAccessible() { throw new RuntimeException("Stub!"); }
153 
154 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
setAccessible(boolean value)155 public void setAccessible(boolean value) { throw new RuntimeException("Stub!"); }
156 }
157 
158