Skip to main content

FileInfo

Represents information about a file to be sent by InboxEntryStream.

Constructors

FileInfo

Creates instance of FileInfo.

public void FileInfo(
byte[] publicMeta,
byte[] privateMeta,
long fileSize,
InputStream fileStream
)

NameTypeDescription
publicMetabyte[]byte array of any arbitrary metadata that can be read by anyone
privateMetabyte[]byte array of any arbitrary metadata that will be encrypted before sending
fileSizelongthe total size of the file data
fileStreamInputStreamreference to InputStream instance used as source for stream file

Fields

fileSize

The total size of the file data.

public final long fileSize

fileStream

An optional InputStream providing the file data. If this value is `null`, the stream will call EntryStreamListener#onNextChunkRequest to request chunks of data for sending.

public final InputStream fileStream

privateMeta

Byte array of any arbitrary metadata that will be encrypted before sending.

public final byte[] privateMeta

publicMeta

Byte array of any arbitrary metadata that can be read by anyone.

public final byte[] publicMeta