public final class MinimalEncoder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
encodeHighLevel(String msg)
Performs message encoding of a DataMatrix message
|
static String |
encodeHighLevel(String msg,
Charset priorityCharset,
int fnc1,
SymbolShapeHint shape)
Performs message encoding of a DataMatrix message
|
public static String encodeHighLevel(String msg)
msg
- the messagepublic static String encodeHighLevel(String msg, Charset priorityCharset, int fnc1, SymbolShapeHint shape)
msg
- the messagepriorityCharset
- The preferred Charset
. When the value of the argument is null, the algorithm
chooses charsets that leads to a minimal representation. Otherwise the algorithm will use the priority
charset to encode any character in the input that can be encoded by it if the charset is among the
supported charsets.fnc1
- denotes the character in the input that represents the FNC1 character or -1 if this is not a GS1
bar code. If the value is not -1 then a FNC1 is also prepended.shape
- requested shape.Copyright © 2007–2024. All rights reserved.