comparison 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
comparison
equal deleted inserted replaced
1031:921c25a05eaa 1032:eca26899c4bc
245 public byte peek() 245 public byte peek()
246 { 246 {
247 return peek(_get); 247 return peek(_get);
248 } 248 }
249 249
250 public Buffer peek(int index, int length) 250 private Buffer peek(int index, int length)
251 { 251 {
252 if (_view == null) 252 if (_view == null)
253 { 253 {
254 _view = new View(this, -1, index, index + length, isReadOnly() ? READONLY : READWRITE); 254 _view = new View(this, -1, index, index + length, isReadOnly() ? READONLY : READWRITE);
255 } 255 }
481 */ 481 */
482 return toString("ISO-8859-1"); 482 return toString("ISO-8859-1");
483 } 483 }
484 484
485 @Override 485 @Override
486 public final String toString(int index, int length) {
487 return peek(index,length).toString();
488 }
489
490 @Override
486 public final String toString(String charset) 491 public final String toString(String charset)
487 { 492 {
488 try 493 try
489 { 494 {
490 byte[] bytes=array(); 495 byte[] bytes=array();