org.jboss.osgi.framework.util
Class IOUtils

java.lang.Object
  extended by org.jboss.osgi.framework.util.IOUtils

public final class IOUtils
extends Object

A collection of IO utilities.

Since:
19-Dec-2009
Author:
thomas.diesler@jboss.com

Method Summary
static URL toURL(String urlstr)
          Get a URL from the given string
static URL toURL(VirtualFile file)
          Get a URL from the given virtual file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toURL

public static URL toURL(String urlstr)
Get a URL from the given string

Throws:
IllegalArgumentException - if the urlstr does not represent a valid URL

toURL

public static URL toURL(VirtualFile file)
Get a URL from the given virtual file

Throws:
IllegalArgumentException - if the file does not represent a valid URL


Copyright © 2012. All Rights Reserved.