Class PDF417HighLevelEncoder.NoECIInput

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String input  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NoECIInput​(java.lang.String input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • input

        java.lang.String input
    • Constructor Detail

      • NoECIInput

        private NoECIInput​(java.lang.String input)
    • Method Detail

      • length

        public int length()
        Description copied from interface: ECIInput
        Returns the length of this input. The length is the number of bytes in or ECIs in the sequence.
        Specified by:
        length in interface ECIInput
        Returns:
        the number of chars in this sequence
      • charAt

        public char charAt​(int index)
        Description copied from interface: ECIInput
        Returns the 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.
        Specified by:
        charAt in interface ECIInput
        Parameters:
        index - the index of the byte value to be returned
        Returns:
        the specified byte value as character or the FNC1 character
      • isECI

        public boolean isECI​(int index)
        Description copied from interface: ECIInput
        Determines if a value is an ECI
        Specified by:
        isECI in interface ECIInput
        Parameters:
        index - the index of the value
        Returns:
        true if the value at position index is an ECI
      • getECIValue

        public int getECIValue​(int index)
        Description copied from interface: ECIInput
        Returns the 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.
        Specified by:
        getECIValue in interface ECIInput
        Parameters:
        index - the index of the int 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 interface ECIInput
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Description copied from interface: ECIInput
        Returns a 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 chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.
        Specified by:
        subSequence in interface ECIInput
        Parameters:
        start - the start index, inclusive
        end - the end index, exclusive
        Returns:
        the specified subsequence
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object