Skip navigation links

Package org.sw4j.tool.barcode.random.decoder

This package is the base for a pluggable decoder architecture.

See: Description

Package org.sw4j.tool.barcode.random.decoder Description

This package is the base for a pluggable decoder architecture.

This architecture uses the Java ServiceLoader to load additional decoders.

To add a new decoder extend the abstract class org.sw4j.tool.barcode.random.encoder.ByteArrayDecoder and add a file named org.sw4j.tool.barcode.random.encoder.ByteArrayDecoder in your META-INF/services folder with your fully qualified classname as content.

In your class you have to override the methods ByteArrayDecoder#supports(String) and ByteArrayDecoder#decode(String) to add a new decoder which then can be referenced by the config.

Skip navigation links

Copyright © 2020 sw4j.org. All rights reserved.