Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/View.java @ 1031:921c25a05eaa
remove Buffer.asReadOnlyBuffer()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 02:04:40 -0600 |
parents | 80cad9086593 |
children | eca26899c4bc |
comparison
equal
deleted
inserted
replaced
1030:80cad9086593 | 1031:921c25a05eaa |
---|---|
44 setGetIndex(get); | 44 setGetIndex(get); |
45 setMarkIndex(mark); | 45 setMarkIndex(mark); |
46 _access=access; | 46 _access=access; |
47 } | 47 } |
48 | 48 |
49 public View(Buffer buffer) | |
50 { | |
51 super(READWRITE); | |
52 _buffer=buffer.buffer(); | |
53 setPutIndex(buffer.putIndex()); | |
54 setGetIndex(buffer.getIndex()); | |
55 setMarkIndex(buffer.markIndex()); | |
56 _access=buffer.isReadOnly()?READONLY:READWRITE; | |
57 } | |
58 | |
59 public View() | 49 public View() |
60 { | 50 { |
61 super(READWRITE); | 51 super(READWRITE); |
62 } | 52 } |
63 | 53 |
140 @Override | 130 @Override |
141 public Buffer peek(int index, int length) | 131 public Buffer peek(int index, int length) |
142 { | 132 { |
143 return _buffer.peek(index, length); | 133 return _buffer.peek(index, length); |
144 } | 134 } |
145 | 135 |
146 @Override | 136 @Override |
147 public int poke(int index, Buffer src) | 137 public int poke(int index, Buffer src) |
148 { | 138 { |
149 return _buffer.poke(index,src); | 139 return _buffer.poke(index,src); |
150 } | 140 } |