morfologik.util
Class ResourceUtils
java.lang.Object
morfologik.util.ResourceUtils
public final class ResourceUtils
- extends Object
Resource management utilities.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.