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() |
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.JsonFactory to indicate matched formatpublic java.lang.String getMatchedFormatName()
return hasMatch() ? getMatch().getFormatName() : null;
null if nonepublic JsonParser createParserWithMatch() throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getDataStream()
Copyright © 2010 - 2023 Adobe. All Rights Reserved