TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | Protected Member Functions | List of all members
com.tmlsidex.tml.TMLRecStream Class Reference

TML stream receiver. More...

Inheritance diagram for com.tmlsidex.tml.TMLRecStream:
com.tmlsidex.jni.TmlJniRecStreamDldBlockHandlerIF com.tmlsidex.jni.TmlJniRecStreamDldFinishHandlerIF

Public Member Functions

int jniRecStreamDldBlockCB (long iID, Object cbData, byte[] buffer, int bytesRead, long totalBytesRead, long streamSize)
 stream download block handler implementation More...
 
void jniRecStreamDldFinishCB (long iID, int iError, Object cbData)
 stream download finish handler implementation More...
 
 TMLRecStream (TMLProfile profile, long streamID, String sIP, String sPort) throws TmlSidexException
 constructs a TMLRecStream instance More...
 
long getStreamID ()
 get stream identification More...
 
long getPosition () throws TmlSidexException
 get stream position More...
 
long getSize () throws TmlSidexException
 get stream size in bytes More...
 
int read (ByteBuffer buffer, int count) throws TmlSidexException
 read a buffer from the stream More...
 
void seek (long seekPos, int origin) throws TmlSidexException
 move to stream position (seek) More...
 
void write (byte[] buffer, int count) throws TmlSidexException
 write data to a stream More...
 
void downloadData (int buffersize, TMLRecStreamDldBlockHandlerIF cbDldBlockInstance, Object pCBDataDld, TMLRecStreamDldFinishHandlerIF cbDldFinishInstance, Object pCBDataDldFinish) throws TmlSidexException
 start a full download of a stream More...
 

Protected Member Functions

void finalize () throws Throwable
 destructor More...
 

Additional Inherited Members

- Static Public Attributes inherited from com.tmlsidex.jni.TmlJniRecStreamDldBlockHandlerIF
static final String CB_NAME = "jniRecStreamDldBlockCB"
 stream download block handler method name More...
 
- Static Public Attributes inherited from com.tmlsidex.jni.TmlJniRecStreamDldFinishHandlerIF
static final String CB_NAME = "jniRecStreamDldFinishCB"
 stream download finish handler method name More...
 

Detailed Description

TML stream receiver.

The TMLRecStream object provides an interface to a TML receiver stream and its data. It is connected to a sender stream on another peer.