org.xhtmlrenderer.util
Class IOUtil

java.lang.Object
  extended by org.xhtmlrenderer.util.IOUtil

public class IOUtil
extends Object

Author:
patrick

Constructor Summary
IOUtil()
           
 
Method Summary
static File copyFile(File page, File outputDir)
           
static void deleteAllFiles(File dir)
           
static InputStream openStreamAtUrl(String uri)
          Attempts to open a connection, and a stream, to the URI provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
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

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.