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
public class JavadocEscapeWriter
- extends FilterWriter
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 (kohsuke.kawaguchi@sun.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavadocEscapeWriter
public JavadocEscapeWriter(Writer next)
write
public void write(int ch)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(char[] buf,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(char[] buf)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String buf,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterWriter
- Throws:
IOException
write
public void write(String buf)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
Copyright © 2005-2012 Oracle. All Rights Reserved.