Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/View.java Thu Nov 03 01:10:09 2016 -0600 +++ b/src/org/eclipse/jetty/io/View.java Thu Nov 03 02:04:40 2016 -0600 @@ -46,16 +46,6 @@ _access=access; } - public View(Buffer buffer) - { - super(READWRITE); - _buffer=buffer.buffer(); - setPutIndex(buffer.putIndex()); - setGetIndex(buffer.getIndex()); - setMarkIndex(buffer.markIndex()); - _access=buffer.isReadOnly()?READONLY:READWRITE; - } - public View() { super(READWRITE); @@ -142,7 +132,7 @@ { return _buffer.peek(index, length); } - + @Override public int poke(int index, Buffer src) {