Package com.google.zxing.pdf417.encoder
Class PDF417HighLevelEncoder.NoECIInput
java.lang.Object
com.google.zxing.pdf417.encoder.PDF417HighLevelEncoder.NoECIInput
- All Implemented Interfaces:
ECIInput
- Enclosing class:
PDF417HighLevelEncoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) Returns thebyte
value at the specified index.int
getECIValue
(int index) Returns theint
ECI value at the specified index.boolean
haveNCharacters
(int index, int n) boolean
isECI
(int index) Determines if a value is an ECIint
length()
Returns the length of this input.subSequence
(int start, int end) Returns aCharSequence
that is a subsequence of this sequence.toString()
-
Field Details
-
input
String input
-
-
Constructor Details
-
NoECIInput
-
-
Method Details
-
length
public int length()Description copied from interface:ECIInput
Returns the length of this input. The length is the number ofbyte
s in or ECIs in the sequence. -
charAt
public char charAt(int index) Description copied from interface:ECIInput
Returns thebyte
value at the specified index. An index ranges from zero tolength() - 1
. The firstbyte
value of the sequence is at index zero, the next at index one, and so on, as for array indexing. -
isECI
public boolean isECI(int index) Description copied from interface:ECIInput
Determines if a value is an ECI -
getECIValue
public int getECIValue(int index) Description copied from interface:ECIInput
Returns theint
ECI value at the specified index. An index ranges from zero tolength() - 1
. The firstbyte
value of the sequence is at index zero, the next at index one, and so on, as for array indexing.- Specified by:
getECIValue
in interfaceECIInput
- Parameters:
index
- the index of theint
value to be returned- Returns:
- the specified
int
ECI value. The ECI specified the encoding of all bytes with a higher index until the next ECI or until the end of the input if no other ECI follows.
-
haveNCharacters
public boolean haveNCharacters(int index, int n) - Specified by:
haveNCharacters
in interfaceECIInput
-
subSequence
Description copied from interface:ECIInput
Returns aCharSequence
that is a subsequence of this sequence. The subsequence starts with thechar
value at the specified index and ends with thechar
value at indexend - 1
. The length (inchar
s) of the returned sequence isend - start
, so ifstart == end
then an empty sequence is returned.- Specified by:
subSequence
in interfaceECIInput
- Parameters:
start
- the start index, inclusiveend
- the end index, exclusive- Returns:
- the specified subsequence
-
toString
-