public class UnicodeEscapeWriter
extends java.io.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.Constructor | Description |
---|---|
UnicodeEscapeWriter(java.io.Writer next) |
Modifier and Type | Method | 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(java.lang.String buf) |
|
void |
write(java.lang.String buf,
int off,
int len) |
public final void write(int ch) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
protected boolean requireEscaping(int ch)
public final void write(char[] buf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public final void write(char[] buf) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public final void write(java.lang.String buf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public final void write(java.lang.String buf) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
Copyright © 2018 Oracle Corporation. All rights reserved.