java.lang.Object
com.aoapps.cdn.data.UploadFile
A file that is being uploaded, and may be partial/incomplete.
Once added, the uploaded file must not be modified.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the CDN this upload file is for.Gets the content type for this upload file.Gets the temp file, which will benull
(and previous underlying file will not exist) once added.
-
Method Details
-
getCdnData
Gets the CDN this upload file is for. -
getContentType
Gets the content type for this upload file. -
getTempFile
Gets the temp file, which will benull
(and previous underlying file will not exist) once added.When writing the file, it is suggested to
OutputStream.flush()
thenFileChannel.force(boolean)
or open channel withStandardOpenOption.SYNC
.
-