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

Implementation of AiIOStream reading from a InputStream. More...

Inherits jassimp.AiIOStream.

Public Member Functions

 AiInputStreamIOStream (URI uri) throws IOException
 
 AiInputStreamIOStream (URL url) throws IOException
 
 AiInputStreamIOStream (InputStream is) throws IOException
 
int getFileSize ()
 The total size of this stream. More...
 
boolean read (ByteBuffer buffer)
 Read all data into buffer. More...
 

Detailed Description

Implementation of AiIOStream reading from a InputStream.

Author
Jesper Smith

Constructor & Destructor Documentation

◆ AiInputStreamIOStream() [1/3]

jassimp.AiInputStreamIOStream.AiInputStreamIOStream ( URI  uri) throws IOException
inline

◆ AiInputStreamIOStream() [2/3]

jassimp.AiInputStreamIOStream.AiInputStreamIOStream ( URL  url) throws IOException
inline

◆ AiInputStreamIOStream() [3/3]

jassimp.AiInputStreamIOStream.AiInputStreamIOStream ( InputStream  is) throws IOException
inline

Member Function Documentation

◆ getFileSize()

int jassimp.AiInputStreamIOStream.getFileSize ( )
inline

The total size of this stream.

Returns
total size of this stream

Implements jassimp.AiIOStream.

◆ read()

boolean jassimp.AiInputStreamIOStream.read ( ByteBuffer  buffer)
inline

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.

Implements jassimp.AiIOStream.


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