Package jadx.api.plugins.utils
Class CommonFileUtils
java.lang.Object
jadx.api.plugins.utils.CommonFileUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyStream(InputStream input, OutputStream output) private static FilegetCWD()static @Nullable StringgetFileExtension(String fileName) static booleanisZipFileExt(String fileName) static byte[]loadBytes(byte[] dataPrefix, InputStream in) static byte[]loadBytes(InputStream input) static StringremoveFileExtension(String fileName) static booleansafeDeleteFile(File file) static PathsaveToTempFile(byte[] dataPrefix, InputStream in, String suffix) static PathsaveToTempFile(InputStream in, String suffix)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
CWD
-
CWD_PATH
-
ZIP_FILE_EXTS
-
-
Constructor Details
-
CommonFileUtils
public CommonFileUtils()
-
-
Method Details
-
getCWD
-
saveToTempFile
- Throws:
IOException
-
saveToTempFile
public static Path saveToTempFile(byte[] dataPrefix, InputStream in, String suffix) throws IOException - Throws:
IOException
-
safeDeleteFile
-
loadBytes
- Throws:
IOException
-
loadBytes
- Throws:
IOException
-
copyStream
- Throws:
IOException
-
getFileExtension
-
removeFileExtension
-
isZipFileExt
-