read
abstract fun read( bytes: ByteArray, offsetInBytes: Int, sizeInBytes: Int): Int
Content copied to clipboard
Read bytes from attachment
Return
the total number of bytes which read, or -1 if cannot read anymore because of various reason.
Parameters
bytes
the byte array into which the data is read.
offsetInBytes
the start offset in data
sizeInBytes
the maximum number of bytes to read
abstract fun read( byteBuffer: ByteBuffer, offsetInBytes: Int, sizeInBytes: Int): Int
Content copied to clipboard
Read bytes from attachment
Return
the total number of bytes which read, or -1 if cannot read anymore because of various reason.
Parameters
byteBuffer
the byte buffer into which the data is read.
offsetInBytes
the start offset in data
sizeInBytes
the maximum number of bytes to read