public class UnicodeEscapeWriter extends FilterWriter
Writer
that escapes non US-ASCII characters into
Java Unicode escape \\uXXXX.
This process is necessary if the method names or field names
contain non US-ASCII characters.out
Constructor and Description |
---|
UnicodeEscapeWriter(Writer next) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
requireEscaping(int ch)
Can be overrided.
|
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(int ch) |
void |
write(String buf) |
void |
write(String buf,
int off,
int len) |
close, flush
public UnicodeEscapeWriter(Writer next)
public final void write(int ch) throws IOException
write
in class FilterWriter
IOException
protected boolean requireEscaping(int ch)
public final void write(char[] buf, int off, int len) throws IOException
write
in class FilterWriter
IOException
public final void write(char[] buf) throws IOException
write
in class Writer
IOException
public final void write(String buf, int off, int len) throws IOException
write
in class FilterWriter
IOException
public final void write(String buf) throws IOException
write
in class Writer
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.