org.xhtmlrenderer.util
Class IOUtil
java.lang.Object
org.xhtmlrenderer.util.IOUtil
public class IOUtil
- extends Object
- Author:
- patrick
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOUtil
public IOUtil()
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
public static InputStream openStreamAtUrl(String uri)
- 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.
Copyright © 2013. All Rights Reserved.