public class BinaryUploader extends Object
| Constructor and Description |
|---|
BinaryUploader(@NonNull InputStream inputStream,
long totalByteSize,
@NonNull String parameterIdentifier)
Constructor
|
BinaryUploader(@NonNull List<InputStream> inputStream,
long totalByteSize,
@NonNull String parameterIdentifier)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static SiLABinaryTransfer.CreateBinaryRequest |
getBinaryRequest(long totalByteSize,
int chunkCount,
@NonNull String parameterIdentifier)
Create a create binary request
|
long |
getBinarySize()
Get the binary size in bytes
|
int |
getChunkCount()
Get the number of chunks
|
static int |
getChunkCount(long totalByteSize)
Get the number of chunks required for a specific byte size
|
SiLABinaryTransfer.UploadChunkRequest |
getNextChunkUploadRequest(@NonNull String binaryTransferUUID)
Get the next chunk upload request
|
String |
getParameterIdentifier()
Get the parameter identifier
|
public BinaryUploader(@NonNull
@NonNull InputStream inputStream,
long totalByteSize,
@NonNull
@NonNull String parameterIdentifier)
inputStream - the input stream to uploadtotalByteSize - the total byte sizeparameterIdentifier - the parameter identifierpublic BinaryUploader(@NonNull
@NonNull List<InputStream> inputStream,
long totalByteSize,
@NonNull
@NonNull String parameterIdentifier)
inputStream - the list input stream to uploadtotalByteSize - the total byte sizeparameterIdentifier - the parameter identifierpublic SiLABinaryTransfer.UploadChunkRequest getNextChunkUploadRequest(@NonNull @NonNull String binaryTransferUUID) throws IOException
binaryTransferUUID - the binary transfer UUIDIOExceptionpublic int getChunkCount()
public long getBinarySize()
public String getParameterIdentifier()
public static SiLABinaryTransfer.CreateBinaryRequest getBinaryRequest(long totalByteSize, int chunkCount, @NonNull @NonNull String parameterIdentifier)
totalByteSize - the total size in bytechunkCount - the number of chunksparameterIdentifier - the parameter identifierSiLABinaryTransfer.CreateBinaryRequest instancepublic static int getChunkCount(long totalByteSize)
totalByteSize - the byte sizeCopyright © 2024 SiLA Java Developers. All rights reserved.