1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2000, 2011, 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 
28 package java.nio;
29 
30 
31 @libcore.api.Hide
32 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
33 @SuppressWarnings({"unchecked", "deprecation", "all"})
34 public class DirectByteBuffer extends java.nio.MappedByteBuffer implements sun.nio.ch.DirectBuffer {
35 
36 @libcore.api.Hide
37 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
DirectByteBuffer(int cap, long addr, java.io.FileDescriptor fd, java.lang.Runnable unmapper, boolean isReadOnly)38 public DirectByteBuffer(int cap, long addr, java.io.FileDescriptor fd, java.lang.Runnable unmapper, boolean isReadOnly) { super(0, 0, 0, 0); throw new RuntimeException("Stub!"); }
39 
40 @libcore.api.Hide
attachment()41 public final java.lang.Object attachment() { throw new RuntimeException("Stub!"); }
42 
43 @libcore.api.Hide
cleaner()44 public final sun.misc.Cleaner cleaner() { throw new RuntimeException("Stub!"); }
45 
46 @libcore.api.Hide
slice()47 public final java.nio.ByteBuffer slice() { throw new RuntimeException("Stub!"); }
48 
49 @libcore.api.Hide
slice(int index, int length)50 public final java.nio.ByteBuffer slice(int index, int length) { throw new RuntimeException("Stub!"); }
51 
52 @libcore.api.Hide
duplicate()53 public final java.nio.ByteBuffer duplicate() { throw new RuntimeException("Stub!"); }
54 
55 @libcore.api.Hide
asReadOnlyBuffer()56 public final java.nio.ByteBuffer asReadOnlyBuffer() { throw new RuntimeException("Stub!"); }
57 
58 @libcore.api.Hide
59 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
address()60 public final long address() { throw new RuntimeException("Stub!"); }
61 
62 @libcore.api.Hide
get()63 public final byte get() { throw new RuntimeException("Stub!"); }
64 
65 @libcore.api.Hide
get(int i)66 public final byte get(int i) { throw new RuntimeException("Stub!"); }
67 
68 @libcore.api.Hide
get(byte[] dst, int dstOffset, int length)69 public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int length) { throw new RuntimeException("Stub!"); }
70 
71 @libcore.api.Hide
put(java.nio.ByteBuffer src)72 public java.nio.ByteBuffer put(java.nio.ByteBuffer src) { throw new RuntimeException("Stub!"); }
73 
74 @libcore.api.Hide
put(byte x)75 public final java.nio.ByteBuffer put(byte x) { throw new RuntimeException("Stub!"); }
76 
77 @libcore.api.Hide
put(int i, byte x)78 public final java.nio.ByteBuffer put(int i, byte x) { throw new RuntimeException("Stub!"); }
79 
80 @libcore.api.Hide
put(byte[] src, int srcOffset, int length)81 public java.nio.ByteBuffer put(byte[] src, int srcOffset, int length) { throw new RuntimeException("Stub!"); }
82 
83 @libcore.api.Hide
compact()84 public final java.nio.ByteBuffer compact() { throw new RuntimeException("Stub!"); }
85 
86 @libcore.api.Hide
isDirect()87 public final boolean isDirect() { throw new RuntimeException("Stub!"); }
88 
89 @libcore.api.Hide
isReadOnly()90 public final boolean isReadOnly() { throw new RuntimeException("Stub!"); }
91 
92 @libcore.api.Hide
getChar()93 public final char getChar() { throw new RuntimeException("Stub!"); }
94 
95 @libcore.api.Hide
getChar(int i)96 public final char getChar(int i) { throw new RuntimeException("Stub!"); }
97 
98 @libcore.api.Hide
putChar(char x)99 public final java.nio.ByteBuffer putChar(char x) { throw new RuntimeException("Stub!"); }
100 
101 @libcore.api.Hide
putChar(int i, char x)102 public final java.nio.ByteBuffer putChar(int i, char x) { throw new RuntimeException("Stub!"); }
103 
104 @libcore.api.Hide
asCharBuffer()105 public final java.nio.CharBuffer asCharBuffer() { throw new RuntimeException("Stub!"); }
106 
107 @libcore.api.Hide
getShort()108 public final short getShort() { throw new RuntimeException("Stub!"); }
109 
110 @libcore.api.Hide
getShort(int i)111 public final short getShort(int i) { throw new RuntimeException("Stub!"); }
112 
113 @libcore.api.Hide
putShort(short x)114 public final java.nio.ByteBuffer putShort(short x) { throw new RuntimeException("Stub!"); }
115 
116 @libcore.api.Hide
putShort(int i, short x)117 public final java.nio.ByteBuffer putShort(int i, short x) { throw new RuntimeException("Stub!"); }
118 
119 @libcore.api.Hide
asShortBuffer()120 public final java.nio.ShortBuffer asShortBuffer() { throw new RuntimeException("Stub!"); }
121 
122 @libcore.api.Hide
getInt()123 public int getInt() { throw new RuntimeException("Stub!"); }
124 
125 @libcore.api.Hide
getInt(int i)126 public int getInt(int i) { throw new RuntimeException("Stub!"); }
127 
128 @libcore.api.Hide
putInt(int x)129 public final java.nio.ByteBuffer putInt(int x) { throw new RuntimeException("Stub!"); }
130 
131 @libcore.api.Hide
putInt(int i, int x)132 public final java.nio.ByteBuffer putInt(int i, int x) { throw new RuntimeException("Stub!"); }
133 
134 @libcore.api.Hide
asIntBuffer()135 public final java.nio.IntBuffer asIntBuffer() { throw new RuntimeException("Stub!"); }
136 
137 @libcore.api.Hide
getLong()138 public final long getLong() { throw new RuntimeException("Stub!"); }
139 
140 @libcore.api.Hide
getLong(int i)141 public final long getLong(int i) { throw new RuntimeException("Stub!"); }
142 
143 @libcore.api.Hide
putLong(long x)144 public final java.nio.ByteBuffer putLong(long x) { throw new RuntimeException("Stub!"); }
145 
146 @libcore.api.Hide
putLong(int i, long x)147 public final java.nio.ByteBuffer putLong(int i, long x) { throw new RuntimeException("Stub!"); }
148 
149 @libcore.api.Hide
asLongBuffer()150 public final java.nio.LongBuffer asLongBuffer() { throw new RuntimeException("Stub!"); }
151 
152 @libcore.api.Hide
getFloat()153 public final float getFloat() { throw new RuntimeException("Stub!"); }
154 
155 @libcore.api.Hide
getFloat(int i)156 public final float getFloat(int i) { throw new RuntimeException("Stub!"); }
157 
158 @libcore.api.Hide
putFloat(float x)159 public final java.nio.ByteBuffer putFloat(float x) { throw new RuntimeException("Stub!"); }
160 
161 @libcore.api.Hide
putFloat(int i, float x)162 public final java.nio.ByteBuffer putFloat(int i, float x) { throw new RuntimeException("Stub!"); }
163 
164 @libcore.api.Hide
asFloatBuffer()165 public final java.nio.FloatBuffer asFloatBuffer() { throw new RuntimeException("Stub!"); }
166 
167 @libcore.api.Hide
getDouble()168 public final double getDouble() { throw new RuntimeException("Stub!"); }
169 
170 @libcore.api.Hide
getDouble(int i)171 public final double getDouble(int i) { throw new RuntimeException("Stub!"); }
172 
173 @libcore.api.Hide
putDouble(double x)174 public final java.nio.ByteBuffer putDouble(double x) { throw new RuntimeException("Stub!"); }
175 
176 @libcore.api.Hide
putDouble(int i, double x)177 public final java.nio.ByteBuffer putDouble(int i, double x) { throw new RuntimeException("Stub!"); }
178 
179 @libcore.api.Hide
asDoubleBuffer()180 public final java.nio.DoubleBuffer asDoubleBuffer() { throw new RuntimeException("Stub!"); }
181 
182 @libcore.api.Hide
isAccessible()183 public final boolean isAccessible() { throw new RuntimeException("Stub!"); }
184 
185 @libcore.api.Hide
186 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
setAccessible(boolean value)187 public final void setAccessible(boolean value) { throw new RuntimeException("Stub!"); }
188 }
189 
190