Get generic IO from AssetManager

Is it possible to get a generic io stream from the AssetManager?

I have a resource file that is just a zip file with three different files inside it. One of the files is a texture that I want JME to handle, and the other two are text files that I need to parse.

Is there some convenient way to get AssetManager to hand me an InputStream for the text files in my zip?

It might be easier to just register a custom AssetLoader for text files. Then you can just read them and return the string.

Or you could try the AssetManager.locateAsset().openStream() method… but I’ve never used it.

Do not use locateAsset().openStream(), its not recommended.

The best way is to create your own format and then create an implementation of AssetLoader for it that will return an appropriate object