Assimp  v4.1. (December 2018)
jassimp.AiClassLoaderIOSystem Class Reference

IOSystem based on the Java classloader. More...

Inherits jassimp.AiIOSystem< AiInputStreamIOStream >.

Public Member Functions

 AiClassLoaderIOSystem (Class<?> clazz)
 Construct a new AiClassLoaderIOSystem. More...
 
 AiClassLoaderIOSystem (ClassLoader classLoader)
 Construct a new AiClassLoaderIOSystem. More...
 
void close (AiInputStreamIOStream file)
 
boolean exists (String path)
 
char getOsSeparator ()
 
AiInputStreamIOStream open (String filename, String ioMode)
 
- Public Member Functions inherited from jassimp.AiIOSystem< AiInputStreamIOStream >
void close (T file)
 Closes the given file and releases all resources associated with it. More...
 
boolean exists (String path)
 Tests for the existence of a file at the given path. More...
 
char getOsSeparator ()
 Returns the system specific directory separator. More...
 
open (String path, String ioMode)
 Open a new file with a given path. More...
 

Detailed Description

IOSystem based on the Java classloader.

This IOSystem allows loading models directly from the classpath. No extraction to the file system is necessary.

Author
Jesper Smith

Constructor & Destructor Documentation

◆ AiClassLoaderIOSystem() [1/2]

jassimp.AiClassLoaderIOSystem.AiClassLoaderIOSystem ( ClassLoader  classLoader)
inline

Construct a new AiClassLoaderIOSystem.

This constructor uses a ClassLoader to resolve resources.

Parameters
classLoaderclassLoader to resolve resources.

◆ AiClassLoaderIOSystem() [2/2]

jassimp.AiClassLoaderIOSystem.AiClassLoaderIOSystem ( Class<?>  clazz)
inline

Construct a new AiClassLoaderIOSystem.

This constructor uses a Class to resolve resources.

Parameters
class<?>class to resolve resources.

Member Function Documentation

◆ close()

void jassimp.AiClassLoaderIOSystem.close ( AiInputStreamIOStream  file)
inline

◆ exists()

boolean jassimp.AiClassLoaderIOSystem.exists ( String  path)
inline

◆ getOsSeparator()

char jassimp.AiClassLoaderIOSystem.getOsSeparator ( )
inline

◆ open()

AiInputStreamIOStream jassimp.AiClassLoaderIOSystem.open ( String  filename,
String  ioMode 
)
inline

The documentation for this class was generated from the following file: