use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.
the class JSONParser method structureArrayEndParser.
private static TrieParser structureArrayEndParser() {
TrieParser trie = new TrieParser(128, 1, true, false);
trie.setValue(JSONConstants.endArray, END_ARRAY);
trie.setValue(JSONConstants.valueSeparator, VALUE_SEPARATOR);
return trie;
}
use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.
the class JSONParser method stringBeginParser.
private static TrieParser stringBeginParser() {
// TODO: double check that slash and " if appearing inside UTF8 encoding do not get picked up as an escape..
TrieParser trie = new TrieParser(256, 1, false, true);
trie.setValue(JSONConstants.string221, STRING_PART | 0x2200);
trie.setValue(JSONConstants.string222, STRING_END | 0x2200);
return trie;
}
use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.
the class JSONParser method structureBeginParser.
private static TrieParser structureBeginParser() {
TrieParser trie = new TrieParser(256, 1, false, true);
trie.setValue(JSONConstants.beginArray, BEGIN_ARRAY);
trie.setValue(JSONConstants.beginObject, BEGIN_OBJECT);
return trie;
}
use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.
the class JSONParser method structureNameSeparatorParser.
private static TrieParser structureNameSeparatorParser() {
TrieParser trie = new TrieParser(256, 1, false, true);
trie.setValue(JSONConstants.nameSeparator, NAME_SEPARATOR);
return trie;
}
use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.
the class JSONParser method whiteSpaceParser.
private static TrieParser whiteSpaceParser() {
TrieParser trie = new TrieParser(256, 1, false, true);
trie.setValue(JSONConstants.ws1, 1);
trie.setValue(JSONConstants.ws2, 2);
trie.setValue(JSONConstants.ws3, 3);
trie.setValue(JSONConstants.ws4, 4);
return trie;
}
Aggregations