diff 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
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/Buffer.java	Fri Nov 04 01:10:12 2016 -0600
+++ b/src/org/eclipse/jetty/io/Buffer.java	Fri Nov 04 02:26:54 2016 -0600
@@ -132,17 +132,6 @@
 	int remaining();
 	
 	/**
-	 * Set the mark to the current getIndex.
-	 */
-	void mark();
-	
-	/**
-	 * The current index of the mark.
-	 * @return an <code>int</code> index in the buffer or -1 if the mark is not set.
-	 */
-	int markIndex();
-
-	/**
 	 * Get the byte at the current getIndex without incrementing the getIndex.
 	 * @return The <code>byte</code> value from the current getIndex.
 	 */
@@ -231,12 +220,6 @@
 	void setGetIndex(int newStart);
 	
 	/**
-	 * Set a specific value for the mark.
-	 * @param newMark an <code>int</code> value
-	 */
-	void setMarkIndex(int newMark);
-	
-	/**
 	 * 
 	 * @param newLimit an <code>int</code> value
 	 */
@@ -255,21 +238,8 @@
 	 */
 	Buffer slice();
 	
-	/**
-	 * 
-	 *
-	 * @return a volitile <code>Buffer</code> value from the mark to the putIndex
-	 */
-	Buffer sliceFromMark();
-	
-	/**
-	 * 
-	 *
-	 * @param length an <code>int</code> value
-	 * @return a valitile <code>Buffer</code> value from the mark of the length requested.
-	 */
-	Buffer sliceFromMark(int length);
-	
+	public Buffer sliceFrom(int index);
+
 	/**
 	 * 
 	 * @return a <code>String</code> value describing the state and contents of the buffer.