parseStream

fun ColladaLoader.parseStream(file: File): ColladaScene

Low-memory streaming load of a .dae from a file or stream (JVM/Android). Unlike ColladaLoader.parse (String), this never allocates the whole document as a String: ColladaStreamParser reads from the Reader (which is xmlutil's multiplatform Reader on these targets) so a multi-hundred-MB photogrammetry .dae stays within a mobile heap. Caller sets ColladaScene.imageSourceFactory for textures.


fun ColladaLoader.parseStream(input: InputStream): ColladaScene

Streams from an already-open input; the caller owns its lifecycle.