org.skunk.spi
Class DictParser
java.lang.Object
|
+--org.skunk.spi.DictParser
- public class DictParser
- extends java.lang.Object
parses a python dictionary with the following characteristics:
a. all keys are strings.
b. some values are dictionaries are dictionaries whose keys are
strings and whose values are also strings.
Field Summary |
static boolean |
ENCODE
|
Method Summary |
static java.util.HashMap |
fromReader(java.io.Reader reader)
|
static java.util.HashMap |
fromString(java.lang.String s)
parses a string representation of a Python dictionary and returns a HashMap |
static void |
main(java.lang.String[] args)
test method. |
static java.lang.String |
toString(java.util.Map hm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODE
public static final boolean ENCODE
DictParser
public DictParser()
toString
public static java.lang.String toString(java.util.Map hm)
fromString
public static java.util.HashMap fromString(java.lang.String s)
- parses a string representation of a Python dictionary and returns a HashMap
fromReader
public static java.util.HashMap fromReader(java.io.Reader reader)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- test method.