public class JSONSingleQuotesTupleMaker extends JSONTupleMaker
Tuple
s from JSON formatted String
s 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
Tuple s from an input object |
protected String |
preProcessJSONString(String str)
This method will replace
' to " in the entire argument string |
createTuples, createTuples
public static final JSONSingleQuotesTupleMaker MAKER
JSONSingleQuotesTupleMaker
instance suitable as argument to Enqueuer
and Expecter
methods that need a TupleMaker
JSONTupleMaker
public Tuple createTuple(Schema schema, String str) throws StreamBaseException
TupleMaker
Tuple
s from an input objectcreateTuple
in interface TupleMaker<String>
createTuple
in class JSONTupleMaker
schema
- the schema for the tuplestr
- the input data to build it fromStreamBaseException