Home
last modified time | relevance | path

Searched refs:createParser (Results 1 – 25 of 123) sorted by relevance

12345

/external/jsilver/src/com/google/streamhtmlparser/
DHtmlParserFactory.java77 private static final HtmlParser parserInDefaultAttr = createParser();
78 private static final HtmlParser parserInDefaultAttrQ = createParser();
79 private static final HtmlParser parserInUriAttrComplete = createParser();
80 private static final HtmlParser parserInUriAttrQComplete = createParser();
81 private static final HtmlParser parserInUriAttrPartial = createParser();
82 private static final HtmlParser parserInUriAttrQPartial = createParser();
83 private static final HtmlParser parserInJsAttr = createParser();
84 private static final HtmlParser parserInJsAttrQ = createParser();
85 private static final HtmlParser parserInQJsAttr = createParser();
86 private static final HtmlParser parserInStyleAttr = createParser();
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DEmptyContentAsTreeTest.java28 try (JsonParser p = MAPPER.createParser(EMPTY0)) { in testNullFromEOFWithParserAndMapper()
31 try (JsonParser p = MAPPER.createParser(EMPTY1)) { in testNullFromEOFWithParserAndMapper()
34 try (JsonParser p = MAPPER.createParser(new StringReader(EMPTY0))) { in testNullFromEOFWithParserAndMapper()
37 try (JsonParser p = MAPPER.createParser(new StringReader(EMPTY1))) { in testNullFromEOFWithParserAndMapper()
41 try (JsonParser p = MAPPER.createParser(EMPTY0_BYTES)) { in testNullFromEOFWithParserAndMapper()
44 try (JsonParser p = MAPPER.createParser(EMPTY1_BYTES)) { in testNullFromEOFWithParserAndMapper()
47 try (JsonParser p = MAPPER.createParser(EMPTY1_BYTES, 0, EMPTY1_BYTES.length)) { in testNullFromEOFWithParserAndMapper()
50 try (JsonParser p = MAPPER.createParser(new ByteArrayInputStream(EMPTY0_BYTES))) { in testNullFromEOFWithParserAndMapper()
53 try (JsonParser p = MAPPER.createParser(new ByteArrayInputStream(EMPTY1_BYTES))) { in testNullFromEOFWithParserAndMapper()
61 try (JsonParser p = MAPPER.createParser(EMPTY0)) { in testNullFromEOFWithParserAndReader()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/
DAsyncNumberCoercionTest.java29 p = createParser("1"); in testToIntCoercion()
36 p = createParser("10"); in testToIntCoercion()
43 p = createParser("2"); in testToIntCoercion()
49 p = createParser("0.1"); in testToIntCoercion()
56 p = createParser("10"); in testToIntCoercion()
69 p = createParser(String.valueOf(big)); in testToIntFailing()
81 p = createParser(String.valueOf(small)); in testToIntFailing()
95 p = createParser(String.valueOf(big)+".0"); in testToIntFailing()
106 p = createParser(String.valueOf(small)+".0"); in testToIntFailing()
119 p = createParser(String.valueOf(big)); in testToIntFailing()
[all …]
DAsyncNonStdNumberHandlingTest.java47 AsyncReaderWrapper p = createParser(f, JSON); in _testLeadingZeroesInt()
62 p = createParser(f, JSON); in _testLeadingZeroesInt()
85 AsyncReaderWrapper p = createParser(f, JSON); in _testLeadingZeroesFloat()
100 p = createParser(f, JSON); in _testLeadingZeroesFloat()
128 AsyncReaderWrapper p = createParser(f, JSON, bytesPerRead); in _testLeadingPeriodFloat()
144 p = createParser(f, JSON, bytesPerRead); in _testLeadingPeriodFloat()
151 private AsyncReaderWrapper createParser(JsonFactory f, String doc) throws IOException in createParser() method in AsyncNonStdNumberHandlingTest
153 return createParser(f, doc, 1); in createParser()
156 private AsyncReaderWrapper createParser(JsonFactory f, String doc, int bytesPerRead) in createParser() method in AsyncNonStdNumberHandlingTest
DAsyncNaNHandlingTest.java24 AsyncReaderWrapper p = createParser(DEFAULT_F, JSON, 1); in testDisallowNaN()
51 AsyncReaderWrapper p = createParser(f, doc, readBytes); in _testAllowNaN()
73 p = createParser(f, doc, readBytes); in _testAllowNaN()
104 AsyncReaderWrapper p = createParser(f, JSON, readBytes); in _testDisallowInf()
142 AsyncReaderWrapper p = createParser(f, doc, readBytes); in _testAllowInf()
172 p = createParser(f, doc, readBytes); in _testAllowInf()
183 …private AsyncReaderWrapper createParser(JsonFactory f, String doc, int readBytes) throws IOExcepti… in createParser() method in AsyncNaNHandlingTest
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DNumberCoercionTest.java24 p = createParser(mode, "1"); in testToIntCoercion()
31 p = createParser(mode, "10"); in testToIntCoercion()
38 p = createParser(mode, "2"); in testToIntCoercion()
45 p = createParser(mode, "10"); in testToIntCoercion()
61 p = createParser(mode, String.valueOf(big)); in testToIntFailing()
73 p = createParser(mode, String.valueOf(small)); in testToIntFailing()
87 p = createParser(mode, String.valueOf(big)+".0"); in testToIntFailing()
98 p = createParser(mode, String.valueOf(small)+".0"); in testToIntFailing()
111 p = createParser(mode, String.valueOf(big)); in testToIntFailing()
122 p = createParser(mode, String.valueOf(small)); in testToIntFailing()
[all …]
DNonStandardParserFeaturesTest.java71 JsonParser p = createParser(STD_F, mode, JSON); in _testNonStandarBackslashQuoting()
85 p = createParser(f, mode, JSON); in _testNonStandarBackslashQuoting()
98 JsonParser p = createParser(STD_F, mode, JSON); in _testLeadingZeroes()
109 p = createParser(STD_F, mode, "[ -000 ]"); in _testLeadingZeroes()
120 p = createParser(LEADING_ZERO_F, mode, JSON); in _testLeadingZeroes()
131 p = createParser(LEADING_ZERO_F, mode, JSON); in _testLeadingZeroes()
140 p = createParser(LEADING_ZERO_F, mode, "[000]"); in _testLeadingZeroes()
156 JsonParser p = createParser(STD_F, mode, JSON); in _testAllowNaN()
171 p = createParser(f, mode, JSON); in _testAllowNaN()
191 p = createParser(f, mode, JSON); in _testAllowNaN()
[all …]
DParserSequenceTest.java12 JsonParser p1 = JSON_FACTORY.createParser("[ 1 ]"); in testSimple()
13 JsonParser p2 = JSON_FACTORY.createParser("[ 2 ]"); in testSimple()
51 JsonParser p1 = JSON_FACTORY.createParser("[ 1 ] "); in testMultiLevel()
52 JsonParser p2 = JSON_FACTORY.createParser(" 5"); in testMultiLevel()
53 JsonParser p3 = JSON_FACTORY.createParser(" { } "); in testMultiLevel()
79 JsonParser p1 = JSON_FACTORY.createParser("1 2"); in testInitializationDisabled()
80 JsonParser p2 = JSON_FACTORY.createParser("3 true"); in testInitializationDisabled()
100 JsonParser p1 = JSON_FACTORY.createParser("1 2"); in testInitializationEnabled()
101 JsonParser p2 = JSON_FACTORY.createParser("3 true"); in testInitializationEnabled()
DParserScopeMatchingTest.java24 JsonParser p = createParser(mode, "[ 1, 2 "); in _testUnclosedArray()
47 JsonParser p = createParser(mode, "{ \"key\" : 3 "); in _testUnclosedObject()
70 JsonParser p = createParser(mode, JSON); in _testEOFInName()
96 JsonParser p = createParser(mode, JSON); in _testWeirdToken()
117 JsonParser p = createParser(mode, JSON); in _testMismatchArrayToObject()
140 JsonParser p = createParser(mode, JSON); in _testMismatchObjectToArray()
163 JsonParser p = createParser(mode, JSON); in _testMisssingColon()
DNumberParsingTest.java41 JsonParser p = createParser(mode, "[ true ]"); in _testSimpleBoolean()
68 JsonParser p = createParser(mode, DOC); in _testSimpleInt()
110 p = createParser(mode, DOC + " "); // DataInput requires separator in _testSimpleInt()
125 p = createParser(mode, DOC + " "); in _testSimpleInt()
131 p = createParser(mode, DOC + " "); in _testSimpleInt()
142 JsonParser p = createParser(mode, DOC); in testIntRange()
210 JsonParser p = createParser(mode, "[ "+EXP_L+" ]"); in _testSimpleLong()
237 JsonParser p = createParser(mode, input); in testLongRange()
319 JsonParser p = createParser(mode, input); in testBigDecimalRange()
343 JsonParser p = createParser(mode, NUMBER_STR +" "); in testBigNumbers()
[all …]
DTrailingCommasTest.java52 JsonParser p = createParser(factory, mode, json); in testArrayBasic()
70 JsonParser p = createParser(factory, mode, json); in testArrayInnerComma()
95 JsonParser p = createParser(factory, mode, json); in testArrayLeadingComma()
121 JsonParser p = createParser(factory, mode, json); in testArrayTrailingComma()
149 JsonParser p = createParser(factory, mode, json); in testArrayTrailingCommas()
180 JsonParser p = createParser(factory, mode, json); in testArrayTrailingCommasTriple()
213 JsonParser p = createParser(factory, mode, json); in testObjectBasic()
234 JsonParser p = createParser(factory, mode, json); in testObjectInnerComma()
250 JsonParser p = createParser(factory, mode, json); in testObjectLeadingComma()
262 JsonParser p = createParser(factory, mode, json); in testObjectTrailingComma()
[all …]
DNumberOverflowTest.java38 JsonParser p = createParser(FACTORY, mode, DOC_BELOW); in testSimpleLongOverflow()
48 p = createParser(mode, DOC_ABOVE); in testSimpleLongOverflow()
68 JsonParser p = createParser(mode, doc); in testMaliciousLongOverflow()
88 JsonParser p = createParser(mode, doc); in testMaliciousIntOverflow()
108 JsonParser p = createParser(mode, doc); in testMaliciousBigIntToDouble()
123 JsonParser p = createParser(mode, doc); in testMaliciousBigIntToFloat()
DParserClosingTest.java39 JsonParser jp = f.createParser(input); in testNoAutoCloseReader()
63 JsonParser jp = f.createParser(input); in testAutoCloseReader()
72 jp = f.createParser(input); in testAutoCloseReader()
89 JsonParser jp = f.createParser(input); in testNoAutoCloseInputStream()
108 JsonParser jp = sharedStreamFactory().createParser(input); in testReleaseContentBytes()
123 JsonParser jp = sharedStreamFactory().createParser("[true]xyz"); in testReleaseContentChars()
DLocationOffsetsTest.java20 p = JSON_F.createParser(DOC); in testSimpleInitialOffsets()
39 p = JSON_F.createParser(DOC.getBytes("UTF-8")); in testSimpleInitialOffsets()
66 p = JSON_F.createParser(b, 3, b.length-5); in testOffsetWithInputOffset()
92 p = JSON_F.createParser(b); in testOffsetWithoutInputOffset()
120 JsonParser p = createParser(JSON_F, MODE_DATA_INPUT, "[\"text\"]"); in testWithLazyStringReadDataInput()
131 JsonParser p = createParser(JSON_F, readMode, "[\"text\"]"); in _testWithLazyStringRead()
158 p = JSON_F.createParser(b); in testUtf8Bom()
184 p = JSON_F.createParser(b); in testUtf8BomWithPadding()
210 p = JSON_F.createParser(b); in testUtf8BomWithInputOffset()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DTokenStreamFactory.java126 public abstract JsonParser createParser(byte[] data) throws IOException; in createParser() method in TokenStreamFactory
127 public abstract JsonParser createParser(byte[] data, int offset, int len) throws IOException; in createParser() method in TokenStreamFactory
128 public abstract JsonParser createParser(char[] content) throws IOException; in createParser() method in TokenStreamFactory
129 public abstract JsonParser createParser(char[] content, int offset, int len) throws IOException; in createParser() method in TokenStreamFactory
130 public abstract JsonParser createParser(DataInput in) throws IOException; in createParser() method in TokenStreamFactory
131 public abstract JsonParser createParser(File f) throws IOException; in createParser() method in TokenStreamFactory
132 public abstract JsonParser createParser(InputStream in) throws IOException; in createParser() method in TokenStreamFactory
133 public abstract JsonParser createParser(Reader r) throws IOException; in createParser() method in TokenStreamFactory
134 public abstract JsonParser createParser(String content) throws IOException; in createParser() method in TokenStreamFactory
135 public abstract JsonParser createParser(URL url) throws IOException; in createParser() method in TokenStreamFactory
DJsonFactory.java918 public JsonParser createParser(File f) throws IOException, JsonParseException { in createParser() method in JsonFactory
946 public JsonParser createParser(URL url) throws IOException, JsonParseException { in createParser() method in JsonFactory
975 public JsonParser createParser(InputStream in) throws IOException, JsonParseException { in createParser() method in JsonFactory
995 public JsonParser createParser(Reader r) throws IOException, JsonParseException { in createParser() method in JsonFactory
1008 public JsonParser createParser(byte[] data) throws IOException, JsonParseException { in createParser() method in JsonFactory
1030 …public JsonParser createParser(byte[] data, int offset, int len) throws IOException, JsonParseExce… in createParser() method in JsonFactory
1049 public JsonParser createParser(String content) throws IOException, JsonParseException { in createParser() method in JsonFactory
1055 return createParser(new StringReader(content)); in createParser()
1070 public JsonParser createParser(char[] content) throws IOException { in createParser() method in JsonFactory
1071 return createParser(content, 0, content.length); in createParser()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/
DBasicParserFilteringTest.java77 JsonParser p = JSON_F.createParser(SIMPLE); in testNonFiltering()
84 JsonParser p0 = JSON_F.createParser(SIMPLE); in testSingleMatchFilteringWithoutPath()
98 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath1()
112 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath2()
126 JsonParser p0 = JSON_F.createParser(jsonString); in testSingleMatchFilteringWithPath3()
140 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithoutPath1()
154 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithoutPath2()
168 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath1()
183 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath2()
197 JsonParser p0 = JSON_F.createParser(jsonString); in testNotAllowMultipleMatchesWithPath3()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/base64/
DBase64BinaryParsingTest.java69 JsonParser p = createParser(mode, "[ ]"); in testInvalidTokenForBase64()
87 JsonParser p = createParser(mode, quote("a===")); in testInvalidChar()
98 p = createParser(mode, quote("ab de")); in testInvalidChar()
109 p = createParser(mode, quote("ab#?")); in testInvalidChar()
139 JsonParser p = createParser(mode, quote(encoded)); in _testOkMissingPadding()
166 JsonParser p = createParser(mode, doc); in _testFailDueToMissingPadding()
177 p = createParser(mode, doc); in _testFailDueToMissingPadding()
230 p = jsonFactory.createParser(chars.toString()); in _testBase64Text()
232 p = createParser(jsonFactory, mode, bytes.toByteArray()); in _testBase64Text()
301 p = jsonFactory.createParser(chars.toString()); in _testStreaming()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectReader.java1019 public JsonParser createParser(File src) throws IOException { in createParser() method in ObjectReader
1021 return _config.initialize(_parserFactory.createParser(src), _schema); in createParser()
1032 public JsonParser createParser(URL src) throws IOException { in createParser() method in ObjectReader
1034 return _config.initialize(_parserFactory.createParser(src), _schema); in createParser()
1045 public JsonParser createParser(InputStream in) throws IOException { in createParser() method in ObjectReader
1047 return _config.initialize(_parserFactory.createParser(in), _schema); in createParser()
1058 public JsonParser createParser(Reader r) throws IOException { in createParser() method in ObjectReader
1060 return _config.initialize(_parserFactory.createParser(r), _schema); in createParser()
1071 public JsonParser createParser(byte[] content) throws IOException { in createParser() method in ObjectReader
1073 return _config.initialize(_parserFactory.createParser(content), _schema); in createParser()
[all …]
DObjectMapper.java1208 public JsonParser createParser(File src) throws IOException {
1210 return _deserializationConfig.initialize(_jsonFactory.createParser(src));
1221 public JsonParser createParser(URL src) throws IOException {
1223 return _deserializationConfig.initialize(_jsonFactory.createParser(src));
1234 public JsonParser createParser(InputStream in) throws IOException {
1236 return _deserializationConfig.initialize(_jsonFactory.createParser(in));
1247 public JsonParser createParser(Reader r) throws IOException {
1249 return _deserializationConfig.initialize(_jsonFactory.createParser(r));
1260 public JsonParser createParser(byte[] content) throws IOException {
1262 return _deserializationConfig.initialize(_jsonFactory.createParser(content));
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTypeDeserializerTest.java13 JsonParser p = f.createParser("true"); in testUtilMethods()
19 p = f.createParser("false "); in testUtilMethods()
24 p = f.createParser("1"); in testUtilMethods()
29 p = f.createParser("0.5 "); in testUtilMethods()
34 p = f.createParser("\"foo\" [ ] "); in testUtilMethods()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DTestCharEscaping.java55 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testMissingEscaping()
82 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testSimpleEscaping()
90 jp = createParser(JSON_F, readMode, "[\"NULL:\\u0000!\"]"); in _testSimpleEscaping()
97 jp = createParser(JSON_F, readMode, "[\"\\u0123\"]"); in _testSimpleEscaping()
104 jp = createParser(JSON_F, readMode, "[\"\\u0041\\u0043\"]"); in _testSimpleEscaping()
125 JsonParser p = createParser(JSON_F, readMode, "{"+inputKey+" : 123456789} "); in _testSimpleNameEscaping()
147 JsonParser jp = createParser(JSON_F, readMode, DOC); in _testInvalid()
172 JsonParser jp = createParser(JSON_F, readMode, DOC); in _test8DigitSequence()
199 JsonParser p = createParser(JSON_F, readMode, DOC); in _testInvalidEscape()
DTestRootValues.java89 JsonParser p = createParser(mode, DOC); in _testSimpleNumbers()
110 JsonParser p = createParser(mode, DOC); in _testBrokenNumber()
131 JsonParser p = createParser(mode, DOC); in _testSimpleBooleans()
157 JsonParser p = createParser(mode, DOC); in _testInvalidToken()
219 JsonParser parser = JSON_F.createParser(in); in testRootOffsetIssue516Bytes()
237 JsonParser parser = JSON_F.createParser(in); in testRootOffsetIssue516Chars()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/
DBaseTest.java313 protected JsonParser createParser(int mode, String doc) throws IOException { in createParser() method in BaseTest
314 return createParser(JSON_FACTORY, mode, doc); in createParser()
317 protected JsonParser createParser(int mode, byte[] doc) throws IOException { in createParser() method in BaseTest
318 return createParser(JSON_FACTORY, mode, doc); in createParser()
321 protected JsonParser createParser(JsonFactory f, int mode, String doc) throws IOException in createParser() method in BaseTest
329 return f.createParser(in); in createParser()
340 protected JsonParser createParser(JsonFactory f, int mode, byte[] doc) throws IOException in createParser() method in BaseTest
344 return f.createParser(new ByteArrayInputStream(doc)); in createParser()
348 return f.createParser(in); in createParser()
351 return f.createParser(new StringReader(new String(doc, "UTF-8"))); in createParser()
[all …]
DTestExceptions.java38 JsonParser p = JSON_F.createParser("{}"); in testAccessToParser()
74 JsonParser p = createParser(mode, "[ "); in _testEofExceptions()
84 p = createParser(mode, "{ \"foo\" : [ ] "); in _testEofExceptions()
97 p = createParser(mode, "{ \"fo"); in _testEofExceptions()
109 p = createParser(mode, "{ \"field\" : "); in _testEofExceptions()

12345