35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
|
package java.nio; |
|
38 |
|
|
39 |
import gnu.java.nio.ByteBufferImpl; |
package java.nio; |
40 |
|
|
41 |
/** |
/** |
42 |
* @since 1.4 |
* @since 1.4 |
46 |
{ |
{ |
47 |
private ByteOrder endian = ByteOrder.BIG_ENDIAN; |
private ByteOrder endian = ByteOrder.BIG_ENDIAN; |
48 |
|
|
49 |
protected int array_offset; |
int array_offset; |
50 |
protected byte[] backing_buffer; |
byte[] backing_buffer; |
51 |
|
|
52 |
protected ByteBuffer (int capacity, int limit, int position, int mark) |
protected ByteBuffer (int capacity, int limit, int position, int mark) |
53 |
{ |
{ |
54 |
super (capacity, limit, position, mark); |
super (capacity, limit, position, mark); |
55 |
array_offset = 0; |
array_offset = 0; |
56 |
} |
} |
57 |
|
|
58 |
protected ByteBuffer (byte[] buffer, int offset, int capacity, int limit, int position, int mark) |
ByteBuffer (byte[] buffer, int offset, int capacity, int limit, int position, int mark) |
59 |
{ |
{ |
60 |
super (capacity, limit, position, mark); |
super (capacity, limit, position, mark); |
61 |
this.backing_buffer = buffer; |
this.backing_buffer = buffer; |