TCP.Advanced.readIntoByteArray()

Signature

int readIntoByteArray(String sessionNickName, int maxNumBytesToRead, Object byteArray)

Domain

ACTION, CONDITION, QUERY, BUI

Parameters

NameTypeDescription
sessionNickNameStringNick name of the session
maxNumBytesToReadintreading stops and returns the data collected so far.
byteArrayObjectinto which the data will be read from offset 0. (For use in custom Java code).

Returns

TypeDescription
int-1 if End-of-stream is reached or the number of bytes that were read into the array passed.