summaryrefslogtreecommitdiffstats
path: root/core-stubs-mini/src/java/nio/ByteBuffer.java
blob: df1179c28fc40ff7ebffc58f9904fc799bf38857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package java.nio;

public abstract class ByteBuffer extends java.nio.Buffer implements
    java.lang.Comparable<java.nio.ByteBuffer> {
  ByteBuffer() {
    throw new RuntimeException("Stub!");
  }

  public static java.nio.ByteBuffer allocate(int capacity) {
    throw new RuntimeException("Stub!");
  }

  public static java.nio.ByteBuffer allocateDirect(int capacity) {
    throw new RuntimeException("Stub!");
  }

  public static java.nio.ByteBuffer wrap(byte[] array) {
    throw new RuntimeException("Stub!");
  }

  public static java.nio.ByteBuffer wrap(byte[] array, int start, int byteCount) {
    throw new RuntimeException("Stub!");
  }

  public final byte[] array() {
    throw new RuntimeException("Stub!");
  }

  public final int arrayOffset() {
    throw new RuntimeException("Stub!");
  }

  public abstract java.nio.CharBuffer asCharBuffer();

  public abstract java.nio.DoubleBuffer asDoubleBuffer();

  public abstract java.nio.FloatBuffer asFloatBuffer();

  public abstract java.nio.IntBuffer asIntBuffer();

  public abstract java.nio.LongBuffer asLongBuffer();

  public abstract java.nio.ByteBuffer asReadOnlyBuffer();

  public abstract java.nio.ShortBuffer asShortBuffer();

  public abstract java.nio.ByteBuffer compact();

  public int compareTo(java.nio.ByteBuffer otherBuffer) {
    throw new RuntimeException("Stub!");
  }

  public abstract java.nio.ByteBuffer duplicate();

  public boolean equals(java.lang.Object other) {
    throw new RuntimeException("Stub!");
  }

  public abstract byte get();

  public java.nio.ByteBuffer get(byte[] dst) {
    throw new RuntimeException("Stub!");
  }

  public java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
    throw new RuntimeException("Stub!");
  }

  public abstract byte get(int index);

  public abstract char getChar();

  public abstract char getChar(int index);

  public abstract double getDouble();

  public abstract double getDouble(int index);

  public abstract float getFloat();

  public abstract float getFloat(int index);

  public abstract int getInt();

  public abstract int getInt(int index);

  public abstract long getLong();

  public abstract long getLong(int index);

  public abstract short getShort();

  public abstract short getShort(int index);

  public final boolean hasArray() {
    throw new RuntimeException("Stub!");
  }

  public int hashCode() {
    throw new RuntimeException("Stub!");
  }

  public abstract boolean isDirect();

  public final java.nio.ByteOrder order() {
    throw new RuntimeException("Stub!");
  }

  public final java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder) {
    throw new RuntimeException("Stub!");
  }

  public abstract java.nio.ByteBuffer put(byte b);

  public final java.nio.ByteBuffer put(byte[] src) {
    throw new RuntimeException("Stub!");
  }

  public java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount) {
    throw new RuntimeException("Stub!");
  }

  public java.nio.ByteBuffer put(java.nio.ByteBuffer src) {
    throw new RuntimeException("Stub!");
  }

  public abstract java.nio.ByteBuffer put(int index, byte b);

  public abstract java.nio.ByteBuffer putChar(char value);

  public abstract java.nio.ByteBuffer putChar(int index, char value);

  public abstract java.nio.ByteBuffer putDouble(double value);

  public abstract java.nio.ByteBuffer putDouble(int index, double value);

  public abstract java.nio.ByteBuffer putFloat(float value);

  public abstract java.nio.ByteBuffer putFloat(int index, float value);

  public abstract java.nio.ByteBuffer putInt(int value);

  public abstract java.nio.ByteBuffer putInt(int index, int value);

  public abstract java.nio.ByteBuffer putLong(long value);

  public abstract java.nio.ByteBuffer putLong(int index, long value);

  public abstract java.nio.ByteBuffer putShort(short value);

  public abstract java.nio.ByteBuffer putShort(int index, short value);

  public abstract java.nio.ByteBuffer slice();
}