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). |
hasMoreLines, readLineiteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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 © 2012-2018 unix4j (tools4j), Ben Warner and Marco Terzer. All rights reserved.