public abstract class UploadItem extends Object
| Constructor and Description |
|---|
UploadItem(String hintFilename,
String mimeType) |
| Modifier and Type | Method and Description |
|---|---|
abstract File |
getFile()
Gets the file to upload or
null if what is being uploaded
is not a physical file. |
String |
getHintFilename()
Gets the hint file name associated with this upload item.
|
protected abstract InputStream |
getInputStream() |
String |
getMimeType()
Gets the MIME type associated with this upload item.
|
abstract long |
getSizeInBytes()
Gets the byte size of the upload item or -1 if the size is unknown.
|
public String getMimeType()
public String getHintFilename()
protected abstract InputStream getInputStream() throws IOException
IOExceptionpublic abstract long getSizeInBytes()
public abstract File getFile()
null if what is being uploaded
is not a physical file.Copyright © 2015 Addicticks. All rights reserved.