Assimp  v4.1. (December 2018)
JavaIOStream Class Reference

Inherits Assimp::IOStream.

Public Member Functions

size_t FileSize () const
 Returns filesize Returns the filesize. More...
 
void Flush ()
 Flush the contents of the file buffer (for writers) See fflush() for more details. More...
 
 JavaIOStream (size_t size, char *buffer, jobject jIOStream)
 
jobject javaObject ()
 
size_t Read (void *pvBuffer, size_t pSize, size_t pCount)
 Read from the file. More...
 
aiReturn Seek (size_t pOffset, aiOrigin pOrigin)
 Set the read/write cursor of the file. More...
 
size_t Tell (void) const
 Get the current position of the read/write cursor. More...
 
size_t Write (const void *pvBuffer, size_t pSize, size_t pCount)
 Write to the file. More...
 
 ~JavaIOStream (void)
 
- Public Member Functions inherited from Assimp::IOStream
virtual ~IOStream ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Assimp::IOStream
 IOStream () AI_NO_EXCEPT
 Constructor protected, use IOSystem::Open() to create an instance. More...
 

Constructor & Destructor Documentation

◆ JavaIOStream()

JavaIOStream::JavaIOStream ( size_t  size,
char *  buffer,
jobject  jIOStream 
)
inline

◆ ~JavaIOStream()

JavaIOStream::~JavaIOStream ( void  )
inline

Member Function Documentation

◆ FileSize()

size_t JavaIOStream::FileSize ( ) const
inlinevirtual

Returns filesize Returns the filesize.

Implements Assimp::IOStream.

◆ Flush()

void JavaIOStream::Flush ( )
inlinevirtual

Flush the contents of the file buffer (for writers) See fflush() for more details.

Implements Assimp::IOStream.

◆ javaObject()

jobject JavaIOStream::javaObject ( )
inline

◆ Read()

size_t JavaIOStream::Read ( void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
inlinevirtual

Read from the file.

See fread() for more details This fails for write-only files

Implements Assimp::IOStream.

◆ Seek()

aiReturn JavaIOStream::Seek ( size_t  pOffset,
aiOrigin  pOrigin 
)
inlinevirtual

Set the read/write cursor of the file.

Note that the offset is negative for aiOrigin_END. See fseek() for more details

Implements Assimp::IOStream.

◆ Tell()

size_t JavaIOStream::Tell ( void  ) const
inlinevirtual

Get the current position of the read/write cursor.

See ftell() for more details

Implements Assimp::IOStream.

◆ Write()

size_t JavaIOStream::Write ( const void *  pvBuffer,
size_t  pSize,
size_t  pCount 
)
inlinevirtual

Write to the file.

See fwrite() for more details This fails for read-only files

Implements Assimp::IOStream.


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