Search in sources :

Example 11 with TrieParser

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;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Example 12 with TrieParser

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;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Example 13 with TrieParser

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;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Example 14 with TrieParser

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;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Example 15 with TrieParser

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;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Aggregations

TrieParser (com.ociweb.pronghorn.util.TrieParser)17 TrieParserReader (com.ociweb.pronghorn.util.TrieParserReader)3 IntHashTable (com.ociweb.pronghorn.pipe.util.hash.IntHashTable)2 PubSubMethodListenerBase (com.ociweb.gl.impl.PubSubMethodListenerBase)1 Test (org.junit.Test)1