comparison src/org/eclipse/jetty/io/nio/ChannelEndPoint.java @ 986:4f2d04c72781

remove RandomAccessFileBuffer
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 17 Oct 2016 04:44:53 -0600
parents bdb6eb0fbf93
children 0e96ce3db20a
comparison
equal deleted inserted replaced
985:8fef34f665e7 986:4f2d04c72781
244 { 244 {
245 if (len>0) 245 if (len>0)
246 buffer.skip(len); 246 buffer.skip(len);
247 } 247 }
248 } 248 }
249 else if (buf instanceof RandomAccessFileBuffer)
250 {
251 len = ((RandomAccessFileBuffer)buf).writeTo(_channel,buffer.getIndex(),buffer.length());
252 if (len>0)
253 buffer.skip(len);
254 }
255 else if (buffer.array()!=null) 249 else if (buffer.array()!=null)
256 { 250 {
257 ByteBuffer b = ByteBuffer.wrap(buffer.array(), buffer.getIndex(), buffer.length()); 251 ByteBuffer b = ByteBuffer.wrap(buffer.array(), buffer.getIndex(), buffer.length());
258 len=_channel.write(b); 252 len=_channel.write(b);
259 if (len>0) 253 if (len>0)