public class JSONSingleQuotesTupleMaker extends JSONTupleMaker
Tuples from JSON formatted Strings that may use
the single quote character ' in lieu of the double quote character ".
Strings will have every ' replaced by ", and then processed.
by JSONTupleMaker
The intent of this Maker is to provide assistance to Java developers writing JSON Strings
JSONTupleMaker,
TupleMaker| Modifier and Type | Field and Description |
|---|---|
static JSONSingleQuotesTupleMaker |
MAKER
Static
JSONSingleQuotesTupleMaker instance suitable as argument to Enqueuer and Expecter
methods that need a TupleMaker |
| Constructor and Description |
|---|
JSONSingleQuotesTupleMaker() |
| Modifier and Type | Method and Description |
|---|---|
Tuple |
createTuple(Schema schema,
java.lang.String str)
create a
Tuples from an input object |
protected java.lang.String |
preProcessJSONString(java.lang.String str)
This method will replace
' to " in the entire argument string |
createTuples, createTuplespublic static final JSONSingleQuotesTupleMaker MAKER
JSONSingleQuotesTupleMaker instance suitable as argument to Enqueuer and Expecter
methods that need a TupleMakerJSONTupleMakerpublic Tuple createTuple(Schema schema, java.lang.String str) throws StreamBaseException
TupleMakerTuples from an input objectcreateTuple in interface TupleMaker<java.lang.String>createTuple in class JSONTupleMakerschema - the schema for the tuplestr - the input data to build it fromStreamBaseExceptionprotected java.lang.String preProcessJSONString(java.lang.String str)
' to " in the entire argument stringstr - input string' to "