java快速获取文件内容、java文件转byte[]数组、byte[]数组转String字符串并设置编码格式private static final int CACHE_SIZE = 1024;public static byte[] fileToBytes(File file) throws Exception{ byte[] data= new byte[0]; if(file.exists()){ FileInputStream in = new FileInputStream(file)