public class ResourceInput extends StreamInput
Class.getResourceAsStream(String).| Constructor and Description |
|---|
ResourceInput(String resource)
Creates an input object opening the given
resource using
Class.getResourceAsStream(String). |
public ResourceInput(String resource)
resource using
Class.getResourceAsStream(String).resource - a path to the file on the classpath; if the file is in the
root directory, the filename should be prefixed with a forward
slash, e.g.: "/test-file.txt"; if the file is in a
package, then the package should be specified prefixed with a
forward slash, and with each dot "." replaced with a forward
slash. e.g.: "/org/company/mypackage/test-file.txt"Class.getResource(String),
Class.getResourceAsStream(String)Copyright © 2017. All Rights Reserved.