comparison src/org/eclipse/jetty/io/Buffer.java @ 1044:dd71a59fcf72

remove buffer marking
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 04 Nov 2016 02:26:54 -0600
parents ae1c92957739
children a8c92b0a08ed
comparison
equal deleted inserted replaced
1043:ae1c92957739 1044:dd71a59fcf72
130 * @return an <code>int</code> == putIndex()-getIndex() 130 * @return an <code>int</code> == putIndex()-getIndex()
131 */ 131 */
132 int remaining(); 132 int remaining();
133 133
134 /** 134 /**
135 * Set the mark to the current getIndex.
136 */
137 void mark();
138
139 /**
140 * The current index of the mark.
141 * @return an <code>int</code> index in the buffer or -1 if the mark is not set.
142 */
143 int markIndex();
144
145 /**
146 * Get the byte at the current getIndex without incrementing the getIndex. 135 * Get the byte at the current getIndex without incrementing the getIndex.
147 * @return The <code>byte</code> value from the current getIndex. 136 * @return The <code>byte</code> value from the current getIndex.
148 */ 137 */
149 byte peek(); 138 byte peek();
150 139
229 * @param newStart an <code>int</code> value 218 * @param newStart an <code>int</code> value
230 */ 219 */
231 void setGetIndex(int newStart); 220 void setGetIndex(int newStart);
232 221
233 /** 222 /**
234 * Set a specific value for the mark.
235 * @param newMark an <code>int</code> value
236 */
237 void setMarkIndex(int newMark);
238
239 /**
240 * 223 *
241 * @param newLimit an <code>int</code> value 224 * @param newLimit an <code>int</code> value
242 */ 225 */
243 void setPutIndex(int newLimit); 226 void setPutIndex(int newLimit);
244 227
253 * 236 *
254 * @return a volitile <code>Buffer</code> from the postion to the putIndex. 237 * @return a volitile <code>Buffer</code> from the postion to the putIndex.
255 */ 238 */
256 Buffer slice(); 239 Buffer slice();
257 240
258 /** 241 public Buffer sliceFrom(int index);
259 * 242
260 *
261 * @return a volitile <code>Buffer</code> value from the mark to the putIndex
262 */
263 Buffer sliceFromMark();
264
265 /**
266 *
267 *
268 * @param length an <code>int</code> value
269 * @return a valitile <code>Buffer</code> value from the mark of the length requested.
270 */
271 Buffer sliceFromMark(int length);
272
273 /** 243 /**
274 * 244 *
275 * @return a <code>String</code> value describing the state and contents of the buffer. 245 * @return a <code>String</code> value describing the state and contents of the buffer.
276 */ 246 */
277 String toDetailString(); 247 String toDetailString();