Assimp  v4.1. (December 2018)
jassimp.AiIOStream Interface Reference

Interface to allow custom resource loaders for jassimp. More...

Inherited by jassimp.AiInputStreamIOStream.

Public Member Functions

int getFileSize ()
 The total size of this stream. More...
 
boolean read (ByteBuffer buffer)
 Read all data into buffer. More...
 

Detailed Description

Interface to allow custom resource loaders for jassimp.

The design is based on passing the file wholly in memory, because Java inputstreams do not have to support seek.

Writing files from Java is unsupported.

Author
Jesper Smith

Member Function Documentation

◆ getFileSize()

int jassimp.AiIOStream.getFileSize ( )

The total size of this stream.

Returns
total size of this stream

Implemented in jassimp.AiInputStreamIOStream.

◆ read()

boolean jassimp.AiIOStream.read ( ByteBuffer  buffer)

Read all data into buffer.

The whole stream should be read into the buffer. No support is provided for partial reads.

Parameters
bufferTarget buffer for the model data
Returns
true if successful, false if an error occurred.

Implemented in jassimp.AiInputStreamIOStream.


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