Skip navigation links

Package org.sw4j.tool.barcode.random.encoder

This package is the base for a pluggable encoder architecture.

See: Description

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

This package is the base for a pluggable encoder architecture.

This architecture uses the Java ServiceLoader to load additional encoders.

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

In your class you have to override the methods ByteArrayEncoder#supports(String) and ByteArrayEncoder#encode(byte[]) to add a new encoder which then can be referenced by the config.

Skip navigation links

Copyright © 2020 sw4j.org. All rights reserved.