Lines Matching refs:filePath
59 public static byte[] getFileData(final String filePath) { in getFileData() argument
60 File file = new File(filePath); in getFileData()
108 public static void getFileList(final String filePath, ArrayList<String> fileList) { in getFileList() argument
109 File file = new File(filePath); in getFileList()
141 public static Optional<String> getFileContent(final String filePath) { in getFileContent() argument
142 if (filePath.isEmpty()) { in getFileContent()
150 fileInputStream = new FileInputStream(filePath); in getFileContent()
221 String filePath = destDir + File.separator + entry.getName(); in unzip() local
222 if (!matchPattern(filePath)) { in unzip()
223 throw new BundleException("Input invalid file " + filePath); in unzip()
226 new File(filePath).mkdirs(); in unzip()
231 File newFile = new File(filePath); in unzip()
300 public static Optional<String> getFormatedPath(final String filePath) { in getFormatedPath() argument
303 File file = new File(filePath); in getFormatedPath()
318 public static boolean checkFileIsExists(final String filePath) { in checkFileIsExists() argument
319 if (filePath.isEmpty()) { in checkFileIsExists()
323 Optional<String> absFilePath = getFormatedPath(filePath); in checkFileIsExists()
440 String filePath = entry.getName(); in getProfileJson() local
441 String fileName = filePath.replaceAll(RESOURCE_PATH, ""); in getProfileJson()
442 String fileContent = getFileStringFromZip(filePath, zipFile); in getProfileJson()
538 String filePath = destDirPath + File.separator + entry.getName(); in unzipFile() local
539 if (!matchPattern(filePath)) { in unzipFile()
540 LOG.error("Input invalid file " + filePath + "."); in unzipFile()
544 extractFile(zipInputStream, filePath); in unzipFile()
546 File dir = new File(filePath); in unzipFile()
561 private static void extractFile(ZipInputStream zipInputStream, String filePath) { in extractFile() argument
564 if (!matchPattern(filePath)) { in extractFile()
565 throw new BundleException("input invalid file " + filePath + "."); in extractFile()
567 bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(filePath)); in extractFile()
594 public static long getFileSize(String filePath) { in getFileSize() argument
595 File file = new File(filePath); in getFileSize()
599 LOG.error("input " + filePath + " is not a valid file."); in getFileSize()