comparison src/org/eclipse/jetty/io/View.java @ 1025:cf0367978d8b

remove View.CaseInsensitive
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 02 Nov 2016 23:46:43 -0600
parents 0e96ce3db20a
children 4e5e9e3c25b3
comparison
equal deleted inserted replaced
1024:be50ffc0ad5c 1025:cf0367978d8b
23 * indexes of the backing buffer. 23 * indexes of the backing buffer.
24 * 24 *
25 * 25 *
26 * 26 *
27 */ 27 */
28 public class View extends AbstractBuffer 28 public final class View extends AbstractBuffer
29 { 29 {
30 Buffer _buffer; 30 private Buffer _buffer;
31 31
32 /** 32 /**
33 * @param buffer The <code>Buffer</code> on which we are presenting a <code>View</code>. 33 * @param buffer The <code>Buffer</code> on which we are presenting a <code>View</code>.
34 * @param mark The initial value of the {@link Buffer#markIndex mark index} 34 * @param mark The initial value of the {@link Buffer#markIndex mark index}
35 * @param get The initial value of the {@link Buffer#getIndex get index} 35 * @param get The initial value of the {@link Buffer#getIndex get index}
222 { 222 {
223 if (_buffer==null) 223 if (_buffer==null)
224 return "INVALID"; 224 return "INVALID";
225 return super.toString(); 225 return super.toString();
226 } 226 }
227
228 public static class CaseInsensitive extends View implements Buffer.CaseInsensitve
229 {
230 public CaseInsensitive()
231 {
232 super();
233 }
234
235 public CaseInsensitive(Buffer buffer, int mark, int get, int put, int access)
236 {
237 super(buffer,mark,get,put,access);
238 }
239
240 public CaseInsensitive(Buffer buffer)
241 {
242 super(buffer);
243 }
244
245 @Override
246 public boolean equals(Object obj)
247 {
248 return this==obj ||((obj instanceof Buffer)&&((Buffer)obj).equalsIgnoreCase(this)) || super.equals(obj);
249 }
250 }
251 } 227 }