public class FileUploadPart extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
String |
action
Type of upload
|
Boolean |
askAboutOverwrites
If `true`, this file exists and you may wish to ask the user for overwrite confirmation
|
Long |
availableParts
Number of parts in the upload
|
String |
expires
Date/time of when this Upload part expires and the URL cannot be used any more
|
Map<String,String> |
headers
Additional upload headers to provide as part of the upload
|
String |
httpMethod
HTTP Method to use for uploading the part, usually `PUT`
|
Long |
nextPartsize
Size in bytes for this part
|
Boolean |
parallelParts
If `true`, multiple parts may be uploaded in parallel.
|
Map<String,String> |
parameters
Additional HTTP parameters to send with the upload
|
Long |
partNumber
Number of this upload part
|
Long |
partsize
Size in bytes for the next upload part
|
String |
path
New file path.
|
String |
ref
Reference name for this upload part
|
Boolean |
retryParts
If `true`, parts may be retried.
|
Map<String,String> |
send
Content-Type and File to send
|
String |
uploadUri
URI to upload this part to
|
| Constructor and Description |
|---|
FileUploadPart() |
FileUploadPart(HashMap<String,Object> parameters) |
FileUploadPart(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
File |
putBufferedInputStream(BufferedInputStream inputStream,
long length,
Date date) |
File |
putInputStream(InputStream inputStream,
Date date) |
File |
putInputStream(InputStream inputStream,
Date date,
int threadCount) |
File |
putLocalFile(String source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic String action
public Boolean askAboutOverwrites
public Long availableParts
public String expires
public Map<String,String> headers
public String httpMethod
public Long nextPartsize
public Boolean parallelParts
public Boolean retryParts
public Long partNumber
public Long partsize
public String path
public String ref
public String uploadUri
public File putInputStream(InputStream inputStream, Date date) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic File putInputStream(InputStream inputStream, Date date, int threadCount) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic File putBufferedInputStream(BufferedInputStream inputStream, long length, Date date) throws IOException
IOExceptionpublic File putLocalFile(String source) throws IOException
IOExceptionCopyright © 2024 com.github.files-com. All rights reserved.