Class FileUtil
- java.lang.Object
-
- com.adobe.pdfservices.operation.internal.util.FileUtil
-
public class FileUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZipOutputStreamaddZipEntry(ZipOutputStream zipOutputStream, String fileName, byte[] byteData)static ZipOutputStreamaddZipEntry(ZipOutputStream zipOutputStream, String fileName, InputStream inputStream)static StringgetRandomFileName(String extension)Returns a random file name with the extension providedstatic voidmoveFile(String source, String destination)static voidmoveFileToStream(String filePath, OutputStream targetStream)
-
-
-
Method Detail
-
moveFile
public static void moveFile(String source, String destination) throws IOException
- Throws:
IOException
-
moveFileToStream
public static void moveFileToStream(String filePath, OutputStream targetStream) throws IOException
- Throws:
IOException
-
getRandomFileName
public static String getRandomFileName(String extension)
Returns a random file name with the extension provided- Parameters:
extension- extension with which the file name will be generated- Returns:
-
addZipEntry
public static ZipOutputStream addZipEntry(ZipOutputStream zipOutputStream, String fileName, InputStream inputStream) throws IOException
- Throws:
IOException
-
addZipEntry
public static ZipOutputStream addZipEntry(ZipOutputStream zipOutputStream, String fileName, byte[] byteData) throws IOException
- Throws:
IOException
-
-