public class ResourceLoader extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
getClassLoader() |
static URL |
getResource(String name) |
static String |
loadString(String name)
Reads a UTF-8 string from the specified resource.
|
static InputStream |
open(String name)
Returns an InputStream for reading the specified resource.
|
public static InputStream open(String name)
name - the name of the resource to be opened.public static String loadString(String name) throws IOException
name - the name of the resource to be read.IOException - if the resource can not be foundpublic static ClassLoader getClassLoader()
Copyright © 2016 The American National Corpus. All rights reserved.