Package com.sun.codemodel.util
Class JavadocEscapeWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
com.sun.codemodel.util.JavadocEscapeWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Writer
that escapes characters that are unsafe
as Javadoc comments.
Such characters include '<' and '&'.
Note that this class doesn't escape other Unicode characters that are typically unsafe. For example, 愛 (A kanji that means "love") can be considered as unsafe because javac with English Windows cannot accept this character in the source code.
If the application needs to escape such characters as well, then they are on their own.
- 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
-
JavadocEscapeWriter
-
-
Method Details
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
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
-