public class Rfc1738 extends TreeMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Rfc1738() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String _in)
Decode a string with rfc1738 spec.
|
static String |
encode(char c)
encode.
|
static String |
encode(String _in)
encode a string in rfc1738 spec
|
static String |
encodeNoUTF8(String _in)
encodeNoUTF8.
|
static void |
encodeNoUTF8(StringBuffer sb,
char c)
encodeNoUTF8.
|
static Map<String,String> |
explode(String _in)
Transforms a list encoded map of attributes back.
|
static String[] |
explodeArray(String in)
Transforms a encoded array of strings back.
|
int |
getInt(String _key)
getInt.
|
int |
getInt(String _key,
int _def)
getInt.
|
static String |
implode(IProperties _in)
Encode a list of attributes in a single string
|
static String |
implode(Map<String,String> _in)
Encode a list of attributes in a single string
|
static String |
implodeArray(String[] in)
Transfor the elements of an array to a string using the rfc1738 sprec.
|
void |
put(String _key,
int _value)
put.
|
String |
toString() |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmptyfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removepublic void put(String _key, int _value)
put.
_key - a String object._value - a int.public int getInt(String _key, int _def)
getInt.
_key - a String object._def - a int.public String toString()
toString in class AbstractMap<String,String>public static String decode(String _in)
_in - encoded stringpublic static String encode(String _in)
_in - decoded stringpublic static String encode(char c)
encode.
c - a char.String object.public static void encodeNoUTF8(StringBuffer sb, char c)
encodeNoUTF8.
sb - a StringBuffer object.c - a char.public static String implodeArray(String[] in)
public static String[] explodeArray(String in)
public static Map<String,String> explode(String _in)
public static String implode(Map<String,String> _in)
public static String implode(IProperties _in)
_in - a IProperties object.String object.Copyright © 2016. All Rights Reserved.