private static final class PDF417HighLevelEncoder.NoECIInput extends java.lang.Object implements ECIInput
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
input |
Modifier | Constructor and Description |
---|---|
private |
NoECIInput(java.lang.String input) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index)
Returns the
byte value at the specified index. |
int |
getECIValue(int index)
Returns the
int ECI value at the specified index. |
boolean |
haveNCharacters(int index,
int n) |
boolean |
isECI(int index)
Determines if a value is an ECI
|
int |
length()
Returns the length of this input.
|
java.lang.CharSequence |
subSequence(int start,
int end)
Returns a
CharSequence that is a subsequence of this sequence. |
java.lang.String |
toString() |
public int length()
ECIInput
byte
s in or ECIs in the sequence.public char charAt(int index)
ECIInput
byte
value at the specified index. An index ranges from zero
to length() - 1
. The first byte
value of the sequence is at
index zero, the next at index one, and so on, as for array
indexing.public boolean isECI(int index)
ECIInput
public int getECIValue(int index)
ECIInput
int
ECI value at the specified index. An index ranges from zero
to length() - 1
. The first byte
value of the sequence is at
index zero, the next at index one, and so on, as for array
indexing.getECIValue
in interface ECIInput
index
- the index of the int
value to be returnedint
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.public boolean haveNCharacters(int index, int n)
haveNCharacters
in interface ECIInput
public java.lang.CharSequence subSequence(int start, int end)
ECIInput
CharSequence
that is a subsequence of this sequence.
The subsequence starts with the char
value at the specified index and
ends with the char
value at index end - 1
. The length
(in char
s) of the
returned sequence is end - start
, so if start == end
then an empty sequence is returned.subSequence
in interface ECIInput
start
- the start index, inclusiveend
- the end index, exclusivepublic java.lang.String toString()
toString
in class java.lang.Object