public interface ECIInput
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.
|
CharSequence |
subSequence(int start,
int end)
Returns a
CharSequence that is a subsequence of this sequence. |
int length()
byte
s in or ECIs in the sequence.char
s in this sequencechar charAt(int index)
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.index
- the index of the byte
value to be returnedbyte
value as character or the FNC1 characterIndexOutOfBoundsException
- if the index
argument is negative or not less than
length()
IllegalArgumentException
- if the value at the index
argument is an ECI (@see #isECI)CharSequence subSequence(int start, int end)
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.start
- the start index, inclusiveend
- the end index, exclusiveIndexOutOfBoundsException
- if start
or end
are negative,
if end
is greater than length()
,
or if start
is greater than end
IllegalArgumentException
- if a value in the range start
-end
is an ECI (@see #isECI)boolean isECI(int index)
index
- the index of the valueindex
is an ECIIndexOutOfBoundsException
- if the index
argument is negative or not less than
length()
int getECIValue(int index)
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.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.IndexOutOfBoundsException
- if the index
argument is negative or not less than
length()
IllegalArgumentException
- if the value at the index
argument is not an ECI (@see #isECI)boolean haveNCharacters(int index, int n)
Copyright © 2007–2024. All rights reserved.