| | |
| | | package com.alibaba.easyexcel.test.util; |
| | | package com.panzhihua.common.utlis; |
| | | |
| | | import java.io.File; |
| | | import java.io.InputStream; |
| | | |
| | | public class TestFileUtil { |
| | | |
| | | public class FileUtil { |
| | | |
| | | public static InputStream getResourcesFileInputStream(String fileName) { |
| | | return Thread.currentThread().getContextClassLoader().getResourceAsStream("" + fileName); |
| | | } |
| | | |
| | | public static String getPath() { |
| | | return TestFileUtil.class.getResource("/").getPath(); |
| | | return FileUtil.class.getResource("/").getPath(); |
| | | } |
| | | |
| | | public static File createNewFile(String pathName) { |