摘要:
java.nio.channels.AsynchronousChannel提供了异步写文件方法, 具体代码如下: public static void syncWrite(String path){ File file = new File(path+"warn.log"); if(!file.ex 阅读全文
摘要:
public static String getCurrentIp() { try { Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); while (networkI 阅读全文