comparison src/org/eclipse/jetty/io/nio/ChannelEndPoint.java @ 1046:a8c92b0a08ed

add JBuffer
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Nov 2016 22:39:39 -0700
parents b71ad168fe34
children 2b769da7f67d
comparison
equal deleted inserted replaced
1045:48506d03e230 1046:a8c92b0a08ed
181 synchronized(bbuf) 181 synchronized(bbuf)
182 { 182 {
183 try 183 try
184 { 184 {
185 bbuf.position(buffer.putIndex()); 185 bbuf.position(buffer.putIndex());
186 len=_channel.read(bbuf); 186 len = _channel.read(bbuf);
187 } 187 }
188 finally 188 finally
189 { 189 {
190 buffer.setPutIndex(bbuf.position()); 190 buffer.setPutIndex(bbuf.position());
191 bbuf.position(0); 191 bbuf.position(0);
213 LOG.trace("",xx); 213 LOG.trace("",xx);
214 } 214 }
215 215
216 if (len>0) 216 if (len>0)
217 throw x; 217 throw x;
218 len=-1; 218 len = -1;
219 } 219 }
220 } 220 }
221 else 221 else
222 { 222 {
223 throw new IOException("Not Implemented"); 223 throw new IOException("Not Implemented");