comparison src/org/eclipse/jetty/io/nio/DirectNIOBuffer.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children 2712133d5bce
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
30 import java.nio.channels.WritableByteChannel; 30 import java.nio.channels.WritableByteChannel;
31 31
32 import org.eclipse.jetty.io.AbstractBuffer; 32 import org.eclipse.jetty.io.AbstractBuffer;
33 import org.eclipse.jetty.io.Buffer; 33 import org.eclipse.jetty.io.Buffer;
34 import org.eclipse.jetty.util.IO; 34 import org.eclipse.jetty.util.IO;
35 import org.eclipse.jetty.util.log.Log; 35 import org.slf4j.Logger;
36 import org.eclipse.jetty.util.log.Logger; 36 import org.slf4j.LoggerFactory;
37 37
38 /* ------------------------------------------------------------------------------- */ 38 /* ------------------------------------------------------------------------------- */
39 /** 39 /**
40 * 40 *
41 * 41 *
42 */ 42 */
43 public class DirectNIOBuffer extends AbstractBuffer implements NIOBuffer 43 public class DirectNIOBuffer extends AbstractBuffer implements NIOBuffer
44 { 44 {
45 private static final Logger LOG = Log.getLogger(DirectNIOBuffer.class); 45 private static final Logger LOG = LoggerFactory.getLogger(DirectNIOBuffer.class);
46 46
47 protected final ByteBuffer _buf; 47 protected final ByteBuffer _buf;
48 private ReadableByteChannel _in; 48 private ReadableByteChannel _in;
49 private InputStream _inStream; 49 private InputStream _inStream;
50 private WritableByteChannel _out; 50 private WritableByteChannel _out;
85 setPutIndex((int)file.length()); 85 setPutIndex((int)file.length());
86 _access=IMMUTABLE; 86 _access=IMMUTABLE;
87 } 87 }
88 finally 88 finally
89 { 89 {
90 if (fc != null) try {fc.close();} catch (IOException e){LOG.ignore(e);} 90 if (fc != null) try {fc.close();} catch (IOException e){LOG.trace("",e);}
91 IO.close(fis); 91 IO.close(fis);
92 } 92 }
93 } 93 }
94 94
95 /* ------------------------------------------------------------ */ 95 /* ------------------------------------------------------------ */