Package com.google.zxing.client.result
Class URIParsedResult
- java.lang.Object
-
- com.google.zxing.client.result.ParsedResult
-
- com.google.zxing.client.result.URIParsedResult
-
public final class URIParsedResult extends ParsedResult
A simple result type encapsulating a URI that has no further interpretation.
-
-
Constructor Summary
Constructors Constructor Description URIParsedResult(java.lang.String uri, java.lang.String title)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetDisplayResult()java.lang.StringgetTitle()java.lang.StringgetURI()private static booleanisColonFollowedByPortNumber(java.lang.String uri, int protocolEnd)booleanisPossiblyMaliciousURI()Deprecated.private static java.lang.StringmassageURI(java.lang.String uri)Transforms a string that represents a URI into something more proper, by adding or canonicalizing the protocol.-
Methods inherited from class com.google.zxing.client.result.ParsedResult
getType, maybeAppend, maybeAppend, toString
-
-
-
-
Method Detail
-
getURI
public java.lang.String getURI()
-
getTitle
public java.lang.String getTitle()
-
isPossiblyMaliciousURI
@Deprecated public boolean isPossiblyMaliciousURI()
Deprecated.- Returns:
- true if the URI contains suspicious patterns that may suggest it intends to mislead the user about its true nature
-
getDisplayResult
public java.lang.String getDisplayResult()
- Specified by:
getDisplayResultin classParsedResult
-
massageURI
private static java.lang.String massageURI(java.lang.String uri)
Transforms a string that represents a URI into something more proper, by adding or canonicalizing the protocol.
-
isColonFollowedByPortNumber
private static boolean isColonFollowedByPortNumber(java.lang.String uri, int protocolEnd)
-
-