Package com.openhtmltopdf.util
Class IOUtil
- java.lang.Object
-
- com.openhtmltopdf.util.IOUtil
-
public class IOUtil extends Object
- Author:
- patrick
-
-
Constructor Summary
Constructors Constructor Description IOUtil()
-
Method Summary
Modifier and Type Method Description static FilecopyFile(File page, File outputDir)static voiddeleteAllFiles(File dir)static InputStreamopenStreamAtUrl(String uri)Deprecated.
-
-
-
Method Detail
-
copyFile
public static File copyFile(File page, File outputDir) throws IOException
- Throws:
IOException
-
deleteAllFiles
public static void deleteAllFiles(File dir) throws IOException
- Throws:
IOException
-
openStreamAtUrl
@Deprecated public static InputStream openStreamAtUrl(String uri)
Deprecated.Attempts to open a connection, and a stream, to the URI provided. timeouts will be set for opening the connection and reading from it. will return the stream, or null if unable to open or read or a timeout occurred. Does not buffer the stream.
-
-