程序包 | 说明 |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.format |
Package that contains interfaces needed for dynamic, pluggable
format (auto)detection; as well as basic utility classes for
simple format detection functionality.
|
org.codehaus.jackson.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
限定符和类型 | 方法和说明 |
---|---|
MatchStrength |
JsonFactory.hasFormat(InputAccessor acc) |
protected MatchStrength |
JsonFactory.hasJSONFormat(InputAccessor acc) |
限定符和类型 | 字段和说明 |
---|---|
protected MatchStrength |
DataFormatMatcher._matchStrength
Strength of match with
DataFormatMatcher._match |
protected MatchStrength |
DataFormatDetector._minimalMatch
Strength of minimal match we accept as the answer, unless
better matches are found.
|
protected MatchStrength |
DataFormatDetector._optimalMatch
Strength of match we consider to be good enough to be used
without checking any other formats.
|
限定符和类型 | 方法和说明 |
---|---|
MatchStrength |
DataFormatMatcher.getMatchStrength()
Method for accessing strength of the match, if any; if no match,
will return
INCONCLUSIVE . |
static MatchStrength |
MatchStrength.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MatchStrength[] |
MatchStrength.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
DataFormatMatcher |
InputAccessor.Std.createMatcher(JsonFactory match,
MatchStrength matchStrength) |
DataFormatDetector |
DataFormatDetector.withMinimalMatch(MatchStrength minMatch)
Method that will return a detector instance that uses given
minimal match level; match that may be returned unless a stronger match
is found with other format detectors.
|
DataFormatDetector |
DataFormatDetector.withOptimalMatch(MatchStrength optMatch)
Method that will return a detector instance that uses given
optimal match level (match that is considered sufficient to return, without
trying to find stronger matches with other formats).
|
构造器和说明 |
---|
DataFormatMatcher(InputStream in,
byte[] buffered,
int bufferedLength,
JsonFactory match,
MatchStrength strength) |
限定符和类型 | 方法和说明 |
---|---|
static MatchStrength |
ByteSourceBootstrapper.hasJSONFormat(InputAccessor acc)
Current implementation is not as thorough as other functionality
(
ByteSourceBootstrapper );
supports UTF-8, for example. |
限定符和类型 | 方法和说明 |
---|---|
MatchStrength |
MappingJsonFactory.hasFormat(InputAccessor acc)
Sub-classes need to override this method (as of 1.8)
|
限定符和类型 | 方法和说明 |
---|---|
MatchStrength |
SmileFactory.hasFormat(InputAccessor acc)
Sub-classes need to override this method (as of 1.8)
|
static MatchStrength |
SmileParserBootstrapper.hasSmileFormat(InputAccessor acc)
Helper
|