Package com.sun.codemodel.util
Class UnicodeEscapeWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
com.sun.codemodel.util.UnicodeEscapeWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
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.- Author:
- Kohsuke Kawaguchi ([email protected])
-
Field Summary
Fields inherited from class java.io.FilterWriter
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterWriter
close, flush
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
UnicodeEscapeWriter
-
-
Method Details
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
requireEscaping
protected boolean requireEscaping(int ch) Can be overrided. Return true if the character needs to be escaped. -
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-