public interface ResourceFinder
This is used by required to load files that are part of the application, and implemented by BaseLib for both the Jme and Jse platforms.
The Jme version of base lib BaseLib
implements Globals.finder via Class.getResourceAsStream(String),
while the Jse version JseBaseLib implements it using File.File(String).
The io library does not use this API for file manipulation.
BaseLib,
Globals.finder,
JseBaseLib,
org.luaj.vm2.lib.jme.JmePlatform,
JsePlatform| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
findResource(String filename)
Try to open a file, or return null if not found.
|
InputStream findResource(String filename)
filename - BaseLib,
JseBaseLibCopyright © 2020. All rights reserved.