| package org.codehaus.jsonpex; |
| import com.sdicons.json.parser.JSONParser; |
| * @author cowtowncoder@yahoo.com |
| public class JsonToolsDriver extends BaseJsonDriver |
| public JsonToolsDriver() { super(); } |
| public void initializeDriver() { |
| // No factories for JsonTools |
| public void run(TestCase testCase) |
| // Json-tools accepts streams, yay! |
| JSONParser jp = new JSONParser(new ByteArrayInputStream(mInputData), "byte stream"); |
| /* Hmmmh. Will we get just one object for the whole thing? |
| * Or a stream? Seems like just one |
| //while ((ob = jp.nextValue()) != null) { ; } |
| Object ob = jp.nextValue(); |
| mHashCode = ob.hashCode(); // just to get some non-optimizable number |
| throw new RuntimeException(e); |