public static class DataFormatReaders.Match
extends java.lang.Object
DataFormatMatcher
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.
|
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 . |
ObjectReader |
getReader()
Accessor for
JsonFactory that represents format that data matched. |
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 ObjectReader getReader()
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