org.fusesource.common.util
Class Files

java.lang.Object
  extended by org.fusesource.common.util.Files

public class Files
extends java.lang.Object


Nested Class Summary
static class Files.DownloadCycle
           
 
Constructor Summary
Files()
           
 
Method Summary
static java.io.File urlToFile(java.lang.String url, java.lang.String tempFilePrefix, java.lang.String tempFilePostfix)
           
static java.io.File urlToFile(java.net.URL url, java.lang.String tempFilePrefix, java.lang.String tempFilePostfix)
          Attempts to convert a URL to a file or copies the URL to a temporary file if it can't be easily converted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Files

public Files()
Method Detail

urlToFile

public static java.io.File urlToFile(java.lang.String url,
                                     java.lang.String tempFilePrefix,
                                     java.lang.String tempFilePostfix)
                              throws java.io.IOException
Throws:
java.io.IOException

urlToFile

public static java.io.File urlToFile(java.net.URL url,
                                     java.lang.String tempFilePrefix,
                                     java.lang.String tempFilePostfix)
                              throws java.io.IOException
Attempts to convert a URL to a file or copies the URL to a temporary file if it can't be easily converted

Throws:
java.io.IOException


Copyright © 2014 Red Hat. All Rights Reserved.