Home
last modified time | relevance | path

Searched refs:fileInputStream (Results 1 – 6 of 6) sorted by relevance

/developtools/packing_tool/adapter/ohos/
DFileUtils.java146 FileInputStream fileInputStream = null; in getFileContent() local
150 fileInputStream = new FileInputStream(filePath); in getFileContent()
151 inputStreamReader = new InputStreamReader(fileInputStream, "UTF-8"); in getFileContent()
163 closeStream(fileInputStream); in getFileContent()
467 InputStream fileInputStream = null; in getFileStringFromZip() local
470 fileInputStream = zipFile.getInputStream(entry); in getFileStringFromZip()
471 bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream, "UTF-8")); in getFileStringFromZip()
480 Utility.closeStream(fileInputStream); in getFileStringFromZip()
DPackageNormalize.java237 try (FileInputStream fileInputStream = new FileInputStream(file)) { in getCrcFromFile() argument
239 int count = fileInputStream.read(buffer); in getCrcFromFile()
242 count = fileInputStream.read(buffer); in getCrcFromFile()
DUncompress.java604 InputStream fileInputStream = null; in dataTransfer() local
611 fileInputStream = zipFile.getInputStream(entry); in dataTransfer()
614 int count = fileInputStream.read(data); in dataTransfer()
619 count = fileInputStream.read(data); in dataTransfer()
626 Utility.closeStream(fileInputStream); in dataTransfer()
1071 FileInputStream fileInputStream = null; in compressFile() local
1092 fileInputStream = new FileInputStream(srcFile); in compressFile()
1093 bufferedInputStream = new BufferedInputStream(fileInputStream); in compressFile()
1106 Utility.closeStream(fileInputStream); in compressFile()
1119 FileInputStream fileInputStream = null; in getCrcFromFile() local
[all …]
DCompressor.java2348 FileInputStream fileInputStream = null; in getCrcFromFile() local
2351 fileInputStream = new FileInputStream(file); in getCrcFromFile()
2354 int count = fileInputStream.read(buffer); in getCrcFromFile()
2357 count = fileInputStream.read(buffer); in getCrcFromFile()
2366 Utility.closeStream(fileInputStream); in getCrcFromFile()
2399 FileInputStream fileInputStream = null; in compressFile() local
2430 fileInputStream = new FileInputStream(srcFile); in compressFile()
2431 bufferedInputStream = new BufferedInputStream(fileInputStream); in compressFile()
2445 Utility.closeStream(fileInputStream); in compressFile()
2491 FileInputStream fileInputStream = null; in getCrcFromFile() local
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DCertificateUtils.java90 try (FileInputStream fileInputStream = FileUtils.openInputStream(new File(certsFile))) { in getCertListFromFile() argument
93 (Collection<X509Certificate>) cf.generateCertificates(fileInputStream); in getCertListFromFile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/test/java/com/ohos/hapsigntool/
DProfileTest.java175 try (InputStream fileInputStream = classLoader.getResourceAsStream(filePath)) { in loadFile() argument
176 if (fileInputStream != null) { in loadFile()
177 byte[] fileData = FileUtils.read(fileInputStream); in loadFile()