public class NativeToAsciiFilterWriter extends FilterWriter
Rework of the Sun open source code - write UTF escapes for higher than ASCII characters.
Known issues: The serialization does not use caps for hex A-F as I would like
AsciiToNativeFilterReader| Modifier and Type | Field and Description |
|---|---|
(package private) String |
lineBreak |
out| Constructor and Description |
|---|
NativeToAsciiFilterWriter(Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(String str) |
void |
write(String str,
int off,
int len)
Writes a portion of a string.
|
close, flush, writefinal String lineBreak
public NativeToAsciiFilterWriter(Writer out)
public void write(char[] buf,
int off,
int len)
write in class FilterWriterpublic void write(String str, int off, int len) throws IOException
write in class FilterWriterstr - String to be writtenoff - Offset from which to start reading characterslen - Number of characters to be writtenIOException - If an I/O error occursCopyright © 2011–2016 David R. Smith. All rights reserved.