@Deprecated public class ComplexPart extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
Deprecated.
Default charset of string parameters
|
static String |
DEFAULT_CONTENT_TYPE
Deprecated.
Default content encoding of string parameters.
|
static String |
DEFAULT_TRANSFER_ENCODING
Deprecated.
Default transfer encoding of string parameters
|
| Constructor and Description |
|---|
ComplexPart(String name,
String value)
Deprecated.
Constructor.
|
ComplexPart(String name,
String value,
String charset)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
lengthOfData()
Deprecated.
Return the length of the data.
|
protected void |
sendData(OutputStream out)
Deprecated.
Writes the data to the given OutputStream.
|
void |
setCharSet(String charSet)
Deprecated.
|
public static final String DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CHARSET
public static final String DEFAULT_TRANSFER_ENCODING
public ComplexPart(String name, String value, String charset)
name - The name of the partvalue - the string to postcharset - the charset to be used to encode the string, if null
the default is usedprotected void sendData(OutputStream out) throws IOException
out - the OutputStream to write toIOException - if there is a write errorprotected long lengthOfData()
throws IOException
IOException - If an IO problem occursorg.apache.commons.httpclient.methods.multipart.Part#lengthOfData()public void setCharSet(String charSet)
Copyright © The Apache Software Foundation. All Rights Reserved.