public class ExtendableQRCodeSchemeParser extends Object implements QRCodeSchemeParser
QRCodeSchemeParser which supports the types
Wifi, VCard, Girocode and URL, and may be
extended by additional parsers for custom types. qrcode.meta into your META-INF folder, containing a
comma-separated list of your parser class names assigned to the key
org.tio.utils.qr.scheme.QRCodeSchemeParser. Let's say you
have additional parsers with the full qualified names
org.me.FooSchemeParser and org.me.BarSchemeParser,
your qrcode.meta must have the following entry.org.tio.utils.qr.scheme.QRCodeSchemeParser=\ org.me.FooSchemeParser,\ org.me.BarSchemeParserTODO: does this parser stuff make sense at all?
| 构造器和说明 |
|---|
ExtendableQRCodeSchemeParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected QRCodeSchemeParser |
createParserInstance(String className) |
protected Set<QRCodeSchemeParser> |
getParser() |
Set<Class<? extends Schema>> |
getSupportedSchemes() |
protected Set<QRCodeSchemeParser> |
loadParser() |
Object |
parse(String qrCodeText)
Tries to parse the given QR code text.
|
public Set<Class<? extends Schema>> getSupportedSchemes()
getSupportedSchemes 在接口中 QRCodeSchemeParserpublic Object parse(String qrCodeText) throws UnsupportedEncodingException
QRCodeSchemeParserparse 在接口中 QRCodeSchemeParserqrCodeText - the qrcode text to interpretUnsupportedEncodingException - if the code is not supported by this interpreter.protected Set<QRCodeSchemeParser> getParser()
protected Set<QRCodeSchemeParser> loadParser()
protected QRCodeSchemeParser createParserInstance(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException
Copyright © 2019. All rights reserved.