comparison src/org/eclipse/jetty/io/JBuffer.java @ 1072:00704b28b9f1

remove JBuffer.skip()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 10 Nov 2016 02:29:01 -0700
parents b4ba8a4d5a16
children 6e511ea557b4
comparison
equal deleted inserted replaced
1071:b4ba8a4d5a16 1072:00704b28b9f1
131 131
132 public int put(byte[] b) { 132 public int put(byte[] b) {
133 return put(b,0,b.length); 133 return put(b,0,b.length);
134 } 134 }
135 135
136 public void skip(int n) {
137 if (remaining() < n) n = remaining();
138 bb.position(bb.position() + n);
139 }
140
141 private final byte[] asArray() { 136 private final byte[] asArray() {
142 byte[] bytes = new byte[remaining()]; 137 byte[] bytes = new byte[remaining()];
143 bb.duplicate().get(bytes); 138 bb.duplicate().get(bytes);
144 return bytes; 139 return bytes;
145 } 140 }