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
)
Name | Type | Description |
---|---|---|
publicMeta | byte[] | byte array of any arbitrary metadata that can be read by anyone |
privateMeta | byte[] | byte array of any arbitrary metadata that will be encrypted before sending |
fileSize | long | the total size of the file data |
fileStream | InputStream | reference 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