diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1032:eca26899c4bc

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 03:19:50 -0600
parents 921c25a05eaa
children 3c4c7cc7904f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 02:04:40 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Thu Nov 03 03:19:50 2016 -0600
@@ -247,7 +247,7 @@
 		return peek(_get);
 	}
 
-	public Buffer peek(int index, int length)
+	private Buffer peek(int index, int length)
 	{
 		if (_view == null)
 		{
@@ -483,6 +483,11 @@
 	}
 
 	@Override
+	public final String toString(int index, int length) {
+		return peek(index,length).toString();
+	}
+
+	@Override
 	public final String toString(String charset)
 	{
 		try