Package net.sf.saxon.str
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 TypeMethodDescriptionvoidappend(IntIterator codePoints) Append a sequence of codepoints supplied as an iteratorvoidappend16(char[] chars, int start, int len) Append an array (or part of an array) of 16-bit characters to the content of the LargeTextBuffervoidappend24(byte[] bytes, int start, int len) Append an array (or part of an array) of 24-bit characters to the content of the LargeTextBuffervoidappend8(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 addedstart- the start offset of the first character to be copiedlen- 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 surrogatesstart- the start offset of the first character to be copiedlen- 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 characterstart- 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
Append a sequence of codepoints supplied as an iterator- Parameters:
codePoints- iterator over the codepoints to be delivered
-