public final class ResourceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
openInputStream(String resource)
Returns an input stream to the resource.
|
public static InputStream openInputStream(String resource) throws IOException
resource
- The path leading to the resource. Can be an URL, a path
leading to a class resource or a File
.IOException
- If the resource could not be found or opened.Copyright © 2017. All rights reserved.