public final class ECIEncoderSet extends Object
Constructor and Description |
---|
ECIEncoderSet(String stringToEncode,
Charset priorityCharset,
int fnc1)
Constructs an encoder set
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEncode(char c,
int encoderIndex) |
byte[] |
encode(char c,
int encoderIndex) |
byte[] |
encode(String s,
int encoderIndex) |
Charset |
getCharset(int index) |
String |
getCharsetName(int index) |
int |
getECIValue(int encoderIndex) |
int |
getPriorityEncoderIndex() |
int |
length() |
public ECIEncoderSet(String stringToEncode, Charset priorityCharset, int fnc1)
stringToEncode
- the string that needs to be encodedpriorityCharset
- The preferred Charset
or null.fnc1
- fnc1 denotes the character in the input that represents the FNC1 character or -1 for a non-GS1 bar
code. When specified, it is considered an error to pass it as argument to the methods canEncode() or encode().public int length()
public String getCharsetName(int index)
public Charset getCharset(int index)
public int getECIValue(int encoderIndex)
public int getPriorityEncoderIndex()
public boolean canEncode(char c, int encoderIndex)
public byte[] encode(char c, int encoderIndex)
public byte[] encode(String s, int encoderIndex)
Copyright © 2007–2024. All rights reserved.