Class CodepointIterator

    • Constructor Detail

      • CodepointIterator

        public CodepointIterator()
        Deprecated.
    • Method Detail

      • forCharArray

        public static CodepointIterator forCharArray​(char[] array)
        Deprecated.
        Get a CodepointIterator for the specified char array
      • forCharSequence

        public static CodepointIterator forCharSequence​(CharSequence seq)
        Deprecated.
        Get a CodepointIterator for the specified CharSequence
      • forByteArray

        public static CodepointIterator forByteArray​(byte[] array)
        Deprecated.
        Get a CodepointIterator for the specified byte array, using the default charset
      • forByteArray

        public static CodepointIterator forByteArray​(byte[] array,
                                                     String charset)
        Deprecated.
        Get a CodepointIterator for the specified byte array, using the specified charset
      • forCharBuffer

        public static CodepointIterator forCharBuffer​(CharBuffer buffer)
        Deprecated.
        Get a CodepointIterator for the specified CharBuffer
      • forReadableByteChannel

        public static CodepointIterator forReadableByteChannel​(ReadableByteChannel channel)
        Deprecated.
        Get a CodepointIterator for the specified ReadableByteChannel
      • forInputStream

        public static CodepointIterator forInputStream​(InputStream in)
        Deprecated.
        Get a CodepointIterator for the specified InputStream
      • forInputStream

        public static CodepointIterator forInputStream​(InputStream in,
                                                       String charset)
        Deprecated.
        Get a CodepointIterator for the specified InputStream using the specified charset
      • forReader

        public static CodepointIterator forReader​(Reader in)
        Deprecated.
        Get a CodepointIterator for the specified Reader
      • hasNext

        public boolean hasNext()
        Deprecated.
        True if there are codepoints remaining
        Specified by:
        hasNext in interface Iterator<Codepoint>
      • lastPosition

        public int lastPosition()
        Deprecated.
        Return the final index position
      • nextChars

        public char[] nextChars()
                         throws InvalidCharacterException
        Deprecated.
        Return the next chars. If the codepoint is not supplemental, the char array will have a single member. If the codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars
        Throws:
        InvalidCharacterException
      • peekChars

        public char[] peekChars()
                         throws InvalidCharacterException
        Deprecated.
        Peek the next chars in the iterator. If the codepoint is not supplemental, the char array will have a single member. If the codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars
        Throws:
        InvalidCharacterException
      • position

        public void position​(int n)
        Deprecated.
        Set the iterator position
      • position

        public int position()
        Deprecated.
        Get the iterator position
      • limit

        public int limit()
        Deprecated.
        Return the iterator limit
      • remaining

        public int remaining()
        Deprecated.
        Return the remaining iterator size
      • isHigh

        public boolean isHigh​(int index)
        Deprecated.
        Returns true if the char at the specified index is a high surrogate
      • isLow

        public boolean isLow​(int index)
        Deprecated.
        Returns true if the char at the specified index is a low surrogate