public class UploadItemStream extends UploadItem
| Constructor and Description |
|---|
UploadItemStream(InputStream is,
String hintFilename,
String mimeType)
Constructs a a stream based upload specification.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
Gets the file to upload or
null if what is being uploaded
is not a physical file. |
InputStream |
getInputStream() |
long |
getSizeInBytes()
Gets the byte size of the upload item or -1 if the size is unknown.
|
getFormFieldName, getHintFilename, getMimeType, setFormFieldNamepublic UploadItemStream(InputStream is, String hintFilename, String mimeType)
is - data stream to uploadhintFilename - hint given to the server about what filename to use
for the uploaded data from is.mimeType - MIME type for the file, e.g.
application/zip. See
Wikipedia
for more information.public InputStream getInputStream() throws IOException
getInputStream in class UploadItemIOExceptionpublic long getSizeInBytes()
UploadItemgetSizeInBytes in class UploadItempublic File getFile()
UploadItemnull if what is being uploaded
is not a physical file.getFile in class UploadItemCopyright © 2015 Addicticks. All rights reserved.