org.xhtmlrenderer.util
Class IOUtil

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

public class IOUtil
extends java.lang.Object

Author:
patrick

Constructor Summary
IOUtil()
           
 
Method Summary
static java.io.File copyFile(java.io.File page, java.io.File outputDir)
           
static void deleteAllFiles(java.io.File dir)
           
static java.io.InputStream openStreamAtUrl(java.lang.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 java.io.File copyFile(java.io.File page,
                                    java.io.File outputDir)
                             throws java.io.IOException
Throws:
java.io.IOException

deleteAllFiles

public static void deleteAllFiles(java.io.File dir)
                           throws java.io.IOException
Throws:
java.io.IOException

openStreamAtUrl

public static java.io.InputStream openStreamAtUrl(java.lang.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 © 2014. All Rights Reserved.