morfologik.util
Class ResourceUtils

java.lang.Object
  extended by morfologik.util.ResourceUtils

public final class ResourceUtils
extends Object

Resource management utilities.


Method Summary
static InputStream openInputStream(String resource)
          Returns an input stream to the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openInputStream

public static InputStream openInputStream(String resource)
                                   throws IOException
Returns an input stream to the resource.

Parameters:
resource - The path leading to the resource. Can be an URL, a path leading to a class resource or a File.
Returns:
InputStream instance.
Throws:
IOException - If the resource could not be found or opened.


Copyright © 2011. All Rights Reserved.