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
net.glxn.qrgen.core.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.net.glxn.qrgen.core.scheme.QRCodeSchemeParser=\ org.me.FooSchemeParser,\ org.me.BarSchemeParserTODO: does this parser stuff make sense at all?
| Constructor and Description |
|---|
ExtendableQRCodeSchemeParser() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface QRCodeSchemeParserpublic Object parse(String qrCodeText) throws UnsupportedEncodingException
QRCodeSchemeParserparse in interface 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 © 2018. All rights reserved.