public class NameValuePair
extends java.lang.Object
Constructor and Description |
---|
NameValuePair(java.lang.String name,
java.lang.String value)
Creates a new name value pair
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name
|
java.lang.String |
getValue()
Gets the value
|
static NameValuePair |
parse(java.lang.String str)
Parses a line of the form:
{ws} name {ws} ["=" {ws} value {ws}];
|
static NameValuePair |
parse(java.lang.String str,
char equal)
Parses a line of the form:
{ws} name {ws} ["
<equal> " {ws} value {ws}]; |
public NameValuePair(java.lang.String name, java.lang.String value)
public java.lang.String getName()
public java.lang.String getValue()
public static NameValuePair parse(java.lang.String str)
str
- the string to parsepublic static NameValuePair parse(java.lang.String str, char equal)
<equal>
" {ws} value {ws}];str
- the string to parseequal
- the delimiter for the equal sign"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"