java.lang.Object | +--MultipartRequest.Part
This class is parts of some multipart
| Field Summary | |
private String |
contenttype
|
private byte[] |
data
|
private String |
filename
|
private int |
from
|
private int |
to
|
| Constructor Summary | |
MultipartRequest.Part(String contenttype,
int from,
int to)
Creates a new Part instance that has no file name. |
|
MultipartRequest.Part(String filename,
String contenttype,
int from,
int to)
Creates a new Part instance that has file name. |
|
| Method Summary | |
String |
getContentType()
Gets content type |
byte[] |
getData()
Gets binary data of part |
String |
getFileName()
Gets file name (if any) |
String |
getShortFileName()
Gets only file name (if any) |
boolean |
isEmpty()
Checking if part is empty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String filename
private String contenttype
private byte[] data
private int from
private int to
| Constructor Detail |
public MultipartRequest.Part(String contenttype,
int from,
int to)
Part instance that has no file name.
contenttype - a content-type of partfrom - a start index in global data bufferto - an end index in global data buffer
public MultipartRequest.Part(String filename,
String contenttype,
int from,
int to)
Part instance that has file name.
filename - a file namecontenttype - a content-type of partfrom - a start index in global data bufferto - an end index in global data buffer| Method Detail |
public String getFileName()
String valuepublic String getShortFileName()
String valuepublic String getContentType()
String valuepublic byte[] getData()
byte[] valuepublic boolean isEmpty()
boolean value