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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | write(char[] buf, int off, int len)
Overrides java. Writes a portion of an array of characters. |
| public void | |
| public void | write(String buf, int off, int len)
Overrides java. Writes a portion of a string. |
| public void |
| JavadocEscapeWriter | back to summary |
|---|---|
| public JavadocEscapeWriter(Writer next) | |
| write | back to summary |
|---|---|
| public void write(int ch) throws IOException Overrides java. Doc from java. Writes a single character.
| |
| write | back to summary |
|---|---|
| public void write(char[] buf, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(char[] buf) throws IOException Overrides java. Doc from java. Writes an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(String buf, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of a string.
| |
| write | back to summary |
|---|---|
| public void write(String buf) throws IOException Overrides java. Doc from java. Writes a string.
| |