Back to project page JayJayLab-Android-Demo.
The source code is released under:
Apache License
If you think the Android project JayJayLab-Android-Demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jayjaylab.androiddemo.util; //from ww w . j ava2 s . c o m import java.nio.channels.Channel; import roboguice.util.Ln; /** * Created by jongjoo on 12/6/14. */ public class NIOHelper { @SuppressWarnings("unused") public static void closeChannel(Channel channel) { if(channel == null) return; try { channel.close(); } catch(Exception e) { Ln.e(e); } } }