PrivMX DOCS
API Reference/PrivMX Endpoint Java Extra/Core

FileInfo

Represents information about a file to be sent by InboxEntryStream.

Constructors

FileInfo

Creates instance of FileInfo.

Params

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

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

Fields

fileSize

long The total size of the file data.

fileStream

InputStream 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.

privateMeta

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

publicMeta

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

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.