Package org.jsoup
Interface Connection.KeyVal
-
- All Known Implementing Classes:
HttpConnection.KeyVal
- Enclosing interface:
- Connection
public static interface Connection.KeyVal
A Key Value tuple.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasInputStream()
Does this keyval have an input stream?InputStream
inputStream()
Get the input stream associated with this keyval, if anyConnection.KeyVal
inputStream(InputStream inputStream)
Add or update an input stream to this keyValString
key()
Get the key of a keyvalConnection.KeyVal
key(String key)
Update the key of a keyvalString
value()
Get the value of a keyvalConnection.KeyVal
value(String value)
Update the value of a keyval
-
-
-
Method Detail
-
key
Connection.KeyVal key(String key)
Update the key of a keyval- Parameters:
key
- new key- Returns:
- this KeyVal, for chaining
-
key
String key()
Get the key of a keyval- Returns:
- the key
-
value
Connection.KeyVal value(String value)
Update the value of a keyval- Parameters:
value
- the new value- Returns:
- this KeyVal, for chaining
-
value
String value()
Get the value of a keyval- Returns:
- the value
-
inputStream
Connection.KeyVal inputStream(InputStream inputStream)
Add or update an input stream to this keyVal- Parameters:
inputStream
- new input stream- Returns:
- this KeyVal, for chaining
-
inputStream
InputStream inputStream()
Get the input stream associated with this keyval, if any- Returns:
- input stream if set, or null
-
hasInputStream
boolean hasInputStream()
Does this keyval have an input stream?- Returns:
- true if this keyval does indeed have an input stream
-
-