Home
last modified time | relevance | path

Searched refs:MatchStrength (Results 1 – 10 of 10) sorted by relevance

/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/
DByteSourceJsonBootstrapper.java7 import com.fasterxml.jackson.core.format.MatchStrength;
276 public static MatchStrength hasJSONFormat(InputAccessor acc) throws IOException in hasJSONFormat()
282 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
288 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
291 return MatchStrength.NO_MATCH; in hasJSONFormat()
294 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
297 return MatchStrength.NO_MATCH; in hasJSONFormat()
300 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
307 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
314 return MatchStrength.INCONCLUSIVE; in hasJSONFormat()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDataFormatReaders.java41 protected final MatchStrength _optimalMatch;
48 protected final MatchStrength _minimalMatch;
65 this(detectors, MatchStrength.SOLID_MATCH, MatchStrength.WEAK_MATCH, in DataFormatReaders()
74 MatchStrength optMatch, MatchStrength minMatch, in DataFormatReaders()
89 public DataFormatReaders withOptimalMatch(MatchStrength optMatch) { in withOptimalMatch()
96 public DataFormatReaders withMinimalMatch(MatchStrength minMatch) { in withMinimalMatch()
218 MatchStrength bestMatchStrength = null; in _findFormat()
221 MatchStrength strength = f.getFactory().hasFormat(acc); in _findFormat()
263 public Match createMatcher(ObjectReader match, MatchStrength matchStrength) in createMatcher()
300 protected final MatchStrength _matchStrength;
[all …]
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/format/
DDataFormatDetector.java34 protected final MatchStrength _optimalMatch;
41 protected final MatchStrength _minimalMatch;
58 this(detectors, MatchStrength.SOLID_MATCH, MatchStrength.WEAK_MATCH, in DataFormatDetector()
67 MatchStrength optMatch, MatchStrength minMatch, int maxInputLookahead) { in DataFormatDetector()
79 public DataFormatDetector withOptimalMatch(MatchStrength optMatch) { in withOptimalMatch()
90 public DataFormatDetector withMinimalMatch(MatchStrength minMatch) { in withMinimalMatch()
179 MatchStrength bestMatchStrength = null; in _findFormat()
182 MatchStrength strength = f.hasFormat(acc); in _findFormat()
DDataFormatMatcher.java40 protected final MatchStrength _matchStrength;
44 JsonFactory match, MatchStrength strength) in DataFormatMatcher()
77 public MatchStrength getMatchStrength() { in getMatchStrength()
78 return (_matchStrength == null) ? MatchStrength.INCONCLUSIVE : _matchStrength; in getMatchStrength()
DMatchStrength.java10 public enum MatchStrength enum
DInputAccessor.java140 public DataFormatMatcher createMatcher(JsonFactory match, MatchStrength matchStrength) in createMatcher()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/format/
DDataFormatMatcherTest.java17 MatchStrength matchStrength = MatchStrength.WEAK_MATCH; in testGetDataStream()
34 JSON_F, MatchStrength.NO_MATCH); in testCreatesDataFormatMatcherTwo()
46 MatchStrength.SOLID_MATCH); in testGetMatchedFormatNameReturnsNameWhenMatches()
54 assertSame(df0, df0.withOptimalMatch(MatchStrength.SOLID_MATCH)); in testDetectorConfiguration()
55 assertSame(df0, df0.withMinimalMatch(MatchStrength.WEAK_MATCH)); in testDetectorConfiguration()
59 assertNotSame(df0, df0.withOptimalMatch(MatchStrength.FULL_MATCH)); in testDetectorConfiguration()
60 assertNotSame(df0, df0.withMinimalMatch(MatchStrength.SOLID_MATCH)); in testDetectorConfiguration()
DTestJsonFormatDetection.java8 import com.fasterxml.jackson.core.format.MatchStrength;
23 assertEquals(MatchStrength.SOLID_MATCH, matcher.getMatchStrength()); in testSimpleValidArray()
45 assertEquals(MatchStrength.SOLID_MATCH, matcher.getMatchStrength()); in testSimpleValidObject()
78 assertEquals(MatchStrength.WEAK_MATCH, matcher.getMatchStrength()); in _testSimpleValidString()
95 assertEquals(MatchStrength.INCONCLUSIVE, matcher.getMatchStrength()); in testSimpleInvalid()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DMappingJsonFactory.java7 import com.fasterxml.jackson.core.format.MatchStrength;
81 public MatchStrength hasFormat(InputAccessor acc) throws IOException in hasFormat()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DJsonFactory.java12 import com.fasterxml.jackson.core.format.MatchStrength;
587 public MatchStrength hasFormat(InputAccessor acc) throws IOException in hasFormat()
617 protected MatchStrength hasJSONFormat(InputAccessor acc) throws IOException in hasJSONFormat()