public interface UnicodeWriter
UnicodeString
objects,
which are written to some destination. It also accepts ordinary String
objects.Modifier and Type | Method and Description |
---|---|
default void |
close()
Complete the writing of characters to the result.
|
default void |
flush()
Flush the contents of any buffers.
|
void |
write(java.lang.String chars)
Process a supplied string
|
void |
write(UnicodeString chars)
Process a supplied string
|
void |
writeAscii(byte[] content)
Write a supplied string known to consist entirely of ASCII characters,
supplied as a byte array.
|
default void |
writeCodePoint(int codepoint)
Process a single character.
|
default void |
writeRepeatedAscii(byte asciiChar,
int count)
Process a single character repeatedly.
|
void write(UnicodeString chars) throws java.io.IOException
chars
- the characters to be processedjava.io.IOException
- if processing fails for any reasonvoid writeAscii(byte[] content) throws java.io.IOException
content
- byte array holding ASCII characters only (the effect if
the high-order bit is set is undefined)java.io.IOException
- if processing fails for any reasondefault void writeCodePoint(int codepoint) throws java.io.IOException
UnicodeString
codepoint
- the character to be processed. Must not be a surrogatejava.io.IOException
- if processing fails for any reasondefault void writeRepeatedAscii(byte asciiChar, int count) throws java.io.IOException
writeAscii(byte[])
.asciiChar
- the character to be processed.count
- the number of times the character is to be outputjava.io.IOException
- if processing fails for any reasonvoid write(java.lang.String chars) throws java.io.IOException
chars
- the characters to be processedjava.io.IOException
- if processing fails for any reasondefault void close() throws java.io.IOException
java.io.IOException
- if processing fails for any reasondefault void flush() throws java.io.IOException
java.io.IOException
- if processing fails for any reasonCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.