public final class StringPart
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
com.android.volley.toolbox.multipart.BasePart.IHeadersProvider |
| Modifier and Type | Field and Description |
|---|---|
protected com.android.volley.toolbox.multipart.BasePart.IHeadersProvider |
headersProvider |
| Constructor and Description |
|---|
StringPart(java.lang.String name,
java.lang.String value)
Default "ISO-8859-1" charset is used.
|
StringPart(java.lang.String name,
java.lang.String value,
java.lang.String charset) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength(com.android.volley.toolbox.multipart.Boundary boundary) |
protected byte[] |
getHeader(com.android.volley.toolbox.multipart.Boundary boundary) |
void |
writeTo(java.io.OutputStream out,
com.android.volley.toolbox.multipart.Boundary boundary) |
protected com.android.volley.toolbox.multipart.BasePart.IHeadersProvider headersProvider
public StringPart(java.lang.String name,
java.lang.String value,
java.lang.String charset)
name - String - name of parameter (may not be null).value - String - value of parameter (may not be null).charset - String, if null is passed then default "ISO-8859-1" charset is used.java.lang.IllegalArgumentException - if either value
or name is null.java.lang.RuntimeException - if charset is unsupported by OS.public StringPart(java.lang.String name,
java.lang.String value)
name - String - name of parameter (may not be null).value - String - value of parameter (may not be null).java.lang.IllegalArgumentException - if either value
or name is null.public long getContentLength(com.android.volley.toolbox.multipart.Boundary boundary)
public void writeTo(java.io.OutputStream out,
com.android.volley.toolbox.multipart.Boundary boundary)
throws java.io.IOException
java.io.IOExceptionprotected byte[] getHeader(com.android.volley.toolbox.multipart.Boundary boundary)