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,
String str)
create a
Tuples from an input object |
protected String |
preProcessJSONString(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, String str) throws StreamBaseException
TupleMakerTuples from an input objectcreateTuple in interface TupleMaker<String>createTuple in class JSONTupleMakerschema - the schema for the tuplestr - the input data to build it fromStreamBaseExceptionCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.