com.googlecode.fascinator.redbox.plugins.curation.redbox
Class FormDataParser
java.lang.Object
com.googlecode.fascinator.redbox.plugins.curation.redbox.FormDataParser
public class FormDataParser
- extends Object
The purpose of this class is to parse ReDBox form data packages and break the
the complicated String field names into meaningful JSON data structures that
are easier to traverse and interrogate.
- Author:
- Greg Pendlebury
|
Method Summary |
static com.googlecode.fascinator.common.JsonSimple |
parse(InputStream input)
Accept and parse raw JSON data from an InputStream. |
static com.googlecode.fascinator.common.JsonSimple |
parse(String input)
A wrapper for Stream based parsing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormDataParser
public FormDataParser()
parse
public static com.googlecode.fascinator.common.JsonSimple parse(String input)
throws IOException
- A wrapper for Stream based parsing. This method accepts a String and
will internally create a Stream for it.
- Parameters:
input - The form data to parse from a String
- Returns:
- JsonSimple The parsed form data in JSON
- Throws:
IOException - if there are errors reading/parsing the form data
parse
public static com.googlecode.fascinator.common.JsonSimple parse(InputStream input)
throws IOException
- Accept and parse raw JSON data from an InputStream. Field name String
literals will be broken down into meaningful JSON data structures.
- Parameters:
input - The form data to parse from an InputStream
- Returns:
- JsonSimple The parsed form data in JSON
- Throws:
IOException - if there are errors reading/parsing the form data
Copyright © 2010-2011. All Rights Reserved.