public class DataFormatMatcher
extends java.lang.Object
DataFormatDetector
when requested
to detect format of given input data.Modifier and Type | Method and Description |
---|---|
JsonParser |
createParserWithMatch()
Convenience method for trying to construct a
JsonParser for
parsing content which is assumed to be in detected data format. |
java.io.InputStream |
getDataStream()
Method to use for accessing input for which format detection has been done.
|
JsonFactory |
getMatch()
Accessor for
JsonFactory that represents format that data matched. |
java.lang.String |
getMatchedFormatName()
Accessor for getting brief textual name of matched format if any (null
if none).
|
MatchStrength |
getMatchStrength()
Method for accessing strength of the match, if any; if no match,
will return
MatchStrength.INCONCLUSIVE . |
boolean |
hasMatch()
Accessor to use to see if any formats matched well enough with
the input data.
|
public boolean hasMatch()
public MatchStrength getMatchStrength()
MatchStrength.INCONCLUSIVE
.public JsonFactory getMatch()
JsonFactory
that represents format that data matched.public java.lang.String getMatchedFormatName()
return hasMatch() ? getMatch().getFormatName() : null;
public JsonParser createParserWithMatch() throws java.io.IOException
JsonParser
for
parsing content which is assumed to be in detected data format.
If no match was found, returns null.java.io.IOException
public java.io.InputStream getDataStream()
Copyright © 2010 - 2020 Adobe. All Rights Reserved