public class UnicodeWriterToWriter extends java.lang.Object implements UnicodeWriter
UnicodeWriter that converts Unicode strings to ordinary
Java strings and sends them to a supplied Writer| Constructor and Description |
|---|
UnicodeWriterToWriter(java.io.Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Complete the writing of characters to the result.
|
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
|
void |
writeCodePoint(int codepoint)
Process a single character.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteRepeatedAsciipublic void write(UnicodeString chars) throws java.io.IOException
write in interface UnicodeWriterchars - the characters to be processedjava.io.IOException - if processing fails for any reasonpublic void writeCodePoint(int codepoint)
throws java.io.IOException
UnicodeStringwriteCodePoint in interface UnicodeWritercodepoint - the character to be processed. Must not be a surrogatejava.io.IOException - if processing fails for any reasonpublic void write(java.lang.String chars)
throws java.io.IOException
write in interface UnicodeWriterchars - the characters to be processedjava.io.IOException - if processing fails for any reasonpublic void writeAscii(byte[] content)
throws java.io.IOException
writeAscii in interface UnicodeWritercontent - byte array holding ASCII characters onlyjava.io.IOException - if processing fails for any reasonpublic void close()
throws java.io.IOException
close in interface UnicodeWriterjava.io.IOException - if processing fails for any reasonpublic void flush()
throws java.io.IOException
flush in interface UnicodeWriterjava.io.IOException - if processing fails for any reasonCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.