import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException;…
import java.io.InputStream; import java.util.Enumeration; import java.util.List; import ja…
import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.…
package com.drew.metadata; import java.io.File; import java.io.IOException; import com.dre…
import org.apache.log4j.Logger; import org.rwl.utils.db.dialect.ExtendDialect; import org.…
Java的concurrent包里面的CountDownLatch其实可以把它看作一个计数器,只不过这个计数器的操作是原子操作,同时只能有一个线程去操作这个计数器,也就是同时只能有…
判断网络类型是wifi,还是3G,还是2G网络,对不同 的网络进行不同的处理,现将判断方法整理给大家,以供参考 说明:下面用到的数据移动2G,联通2G,联通3G,wi…
import java.io.File; import java.io.IOException; import java.util.Iterator; import javax.i…
import java.awt.Font; import javax.swing.JFrame; import org.jfree.chart.ChartFactory; impo…
最近的工作需要把从网络上抓取的图片批量上传到服务器,文件上传用的是Apache HttpClient 4.3,记录一下以便以后查阅! 代码如下: /** * Examp…
使用GZIP格式压缩文本以缩减文件大小,于是乎接触到了 GZIPInputStream/ GZIPOutputStream这两个类,还有 ByteArrayOutputStream…
主要用到了MediaRecorder类,实现代码如下: MediaRecorder mRecorder = new MediaRecorder(); mRecorder.setAu…