Package com.google.zxing.common
Class ECIEncoderSet
java.lang.Object
com.google.zxing.common.ECIEncoderSet
Set of CharsetEncoders for a given input string
 Invariants:
 - The list contains only encoders from CharacterSetECI (list is shorter then the list of encoders available on
   the platform for which ECI values are defined).
 - The list contains encoders at least one encoder for every character in the input.
 - The first encoder in the list is always the ISO-8859-1 encoder even of no character in the input can be encoded
       by it.
 - If the input contains a character that is not in ISO-8859-1 then the last two entries in the list will be the
   UTF-8 encoder and the UTF-16BE encoder.
- Author:
- Alex Geller
- 
Constructor SummaryConstructorsConstructorDescriptionECIEncoderSet(String stringToEncode, Charset priorityCharset, int fnc1) Constructs an encoder set
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanEncode(char c, int encoderIndex) byte[]encode(char c, int encoderIndex) byte[]getCharset(int index) getCharsetName(int index) intgetECIValue(int encoderIndex) intintlength()
- 
Constructor Details- 
ECIEncoderSetConstructs an encoder set- Parameters:
- stringToEncode- the string that needs to be encoded
- priorityCharset- The preferred- Charsetor 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().
 
 
- 
- 
Method Details- 
lengthpublic int length()
- 
getCharsetName
- 
getCharset
- 
getECIValuepublic int getECIValue(int encoderIndex) 
- 
getPriorityEncoderIndexpublic int getPriorityEncoderIndex()
- 
canEncodepublic boolean canEncode(char c, int encoderIndex) 
- 
encodepublic byte[] encode(char c, int encoderIndex) 
- 
encode
 
-