Interface TwineConsumer


public interface TwineConsumer
Interface that accepts a a sequence of Unicode codepoints. These may be supplied in various ways, which are expected to be equivalent: an array holding one, two or three bytes per Unicode character, or an iterator over the integer codepoints.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(IntIterator codePoints)
    Append a sequence of codepoints supplied as an iterator
    void
    append16(char[] chars, int start, int len)
    Append an array (or part of an array) of 16-bit characters to the content of the LargeTextBuffer
    void
    append24(byte[] bytes, int start, int len)
    Append an array (or part of an array) of 24-bit characters to the content of the LargeTextBuffer
    void
    append8(byte[] bytes, int start, int len)
    Append an array (or part of an array) of 8-bit characters to the content of the LargeTextBuffer
  • Method Details

    • append8

      void append8(byte[] bytes, int start, int len)
      Append an array (or part of an array) of 8-bit characters to the content of the LargeTextBuffer
      Parameters:
      bytes - the array of characters to be added
      start - the start offset of the first character to be copied
      len - the number of characters (codepoints, one byte per character) to be copied
    • append16

      void append16(char[] chars, int start, int len)
      Append an array (or part of an array) of 16-bit characters to the content of the LargeTextBuffer
      Parameters:
      chars - the array of characters to be added. This must not contain any surrogates
      start - the start offset of the first character to be copied
      len - the number of characters (codepoints, two bytes per character) to be copied
    • append24

      void append24(byte[] bytes, int start, int len)
      Append an array (or part of an array) of 24-bit characters to the content of the LargeTextBuffer
      Parameters:
      bytes - the array holding the characters to be added, three bytes per character
      start - the start offset of the first character to be copied (codepoint offset, not byte offset)
      len - the number of characters (codepoints, three bytes per character) to be copied
    • append

      void append(IntIterator codePoints)
      Append a sequence of codepoints supplied as an iterator
      Parameters:
      codePoints - iterator over the codepoints to be delivered