public class Part
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
BINARY
part type : BINARY : is a binary or file part.
|
java.lang.String |
content_type
content type when this part is a BINARY type part.
|
java.lang.String |
filename
filename when this part is a BINARY type part.
|
java.lang.String |
name
name of the part.
|
static int |
NONE
part type : NONE.
|
static int |
TEXT
part type : TEXT : is a text part.
|
int |
type
type of the part.
|
java.lang.String |
value
text value when this part is a TEXT type part.
|
コンストラクタと説明 |
---|
Part() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close()
closes the part.
|
java.io.InputStream |
getInputStream()
Retrieves input stream to read the content of a binary type part.
|
java.lang.String |
getShortFileName()
returns file name without path information.
|
java.lang.String |
toString() |
public static final int NONE
public static final int TEXT
public static final int BINARY
#getInputStream()
to access
the content of this part.public java.lang.String name
public int type
public java.lang.String value
public java.lang.String filename
public java.lang.String content_type
public java.io.InputStream getInputStream()
public void close() throws java.io.IOException
java.io.IOException
public java.lang.String getShortFileName()
public java.lang.String toString()
toString
クラス内 java.lang.Object