工具
H_lver
这个作者很懒,什么都没留下…
展开
-
java兼容rbg和cmyk格式的图片读取
ImageInputStream imageInputStream=ImageIO.createImageInputStream(tempFile);BufferedImage image=null;Iterator<ImageReader> it = ImageIO.getImageReaders(imageInputStream);// 迭代器遍历尝试用ImageReader对象进行解码while (it.hasNext()) { ImageReader imageRead.原创 2021-06-09 11:45:05 · 443 阅读 · 1 评论 -
java判断韩文字符
if ((ch > 0x3130 && ch < 0x318F) || (ch >= 0xAC00 && ch <= 0xD7A3)) {}原创 2021-06-04 15:58:25 · 704 阅读 · 0 评论 -
java 递归 删除目录及子目录下所有文件
/** * 迭代删除文件夹 * @author hsj * @param dirPath */ public static void deleteDir(String dirPath) { File file = new File(dirPath); if (file.isFile()) { file.delete(); } else { File[] files = file.listFiles(); if (files == null) { ...原创 2020-11-17 18:06:20 · 126 阅读 · 0 评论 -
文件名规范性验证
/** * 验证文件名是否规范(不包含目录) * @author hsj * @param fileName * @return */ public static boolean isValidFileName(String fileName) { if (fileName == null || fileName.length() > 255) { return false; }else { // 空格换行 \ / : * ? " < &g.原创 2020-11-17 18:04:52 · 179 阅读 · 0 评论 -
java 递归 获取目录及子目录下所有文件
/** * 获取文件夹下所有文件,包括子目录下文件 * @author hsj * @return */ public static List<File> getAllFile(File rootFile){ List<File> fileList=new ArrayList<File>(); if(rootFile==null){ return fileList; } if(rootFile.isDirectory())...原创 2020-11-17 18:03:27 · 332 阅读 · 0 评论 -
java解压zip和rar
解压zip类型压缩包 /** * 解压zip到指定目录 * @author hsj * @param zipFile * @param targetFilePath * @throws IOException */ @SuppressWarnings({ "rawtypes" }) public static void unZipFiles(File zipFile, String targetFilePath) { File pathFile = new File(.原创 2020-11-17 17:59:25 · 609 阅读 · 1 评论 -
Eclipse的各种插件安装地址收藏
m2e http://download.eclipse.org/technology/m2e/releasessvn http://subclipse.tigris.org/update_1.8.xKepler http://download.eclipse.org/releases/kepler //web开发 Jboss http://download.jbos原创 2016-12-23 14:40:03 · 269 阅读 · 0 评论