Home
last modified time | relevance | path

Searched refs:DataFormatDetector (Results 1 – 3 of 3) sorted by relevance

/external/jackson-core/src/main/java/com/fasterxml/jackson/core/format/
DDataFormatDetector.java13 public class DataFormatDetector class
57 public DataFormatDetector(JsonFactory... detectors) { in DataFormatDetector() method in DataFormatDetector
62 public DataFormatDetector(Collection<JsonFactory> detectors) { in DataFormatDetector() method in DataFormatDetector
66 private DataFormatDetector(JsonFactory[] detectors, in DataFormatDetector() method in DataFormatDetector
79 public DataFormatDetector withOptimalMatch(MatchStrength optMatch) { in withOptimalMatch()
83 return new DataFormatDetector(_detectors, optMatch, _minimalMatch, _maxInputLookahead); in withOptimalMatch()
90 public DataFormatDetector withMinimalMatch(MatchStrength minMatch) { in withMinimalMatch()
94 return new DataFormatDetector(_detectors, _optimalMatch, minMatch, _maxInputLookahead); in withMinimalMatch()
101 public DataFormatDetector withMaxInputLookahead(int lookaheadBytes) { in withMaxInputLookahead()
105 return new DataFormatDetector(_detectors, _optimalMatch, _minimalMatch, lookaheadBytes); in withMaxInputLookahead()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/format/
DTestJsonFormatDetection.java6 import com.fasterxml.jackson.core.format.DataFormatDetector;
15 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidArray()
37 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidObject()
64 DataFormatDetector detector = new DataFormatDetector(jsonF); in testSimpleValidString()
88 DataFormatDetector detector = new DataFormatDetector(new JsonFactory()); in testSimpleInvalid()
DDataFormatMatcherTest.java51 DataFormatDetector df0 = new DataFormatDetector(JSON_F); in testDetectorConfiguration()
56 assertSame(df0, df0.withMaxInputLookahead(DataFormatDetector.DEFAULT_MAX_INPUT_LOOKAHEAD)); in testDetectorConfiguration()
61 … assertNotSame(df0, df0.withMaxInputLookahead(DataFormatDetector.DEFAULT_MAX_INPUT_LOOKAHEAD + 5)); in testDetectorConfiguration()