public class EscapeHTMLOutputStream extends FilterOutputStream
out| Constructor and Description |
|---|
EscapeHTMLOutputStream(OutputStream out)Create an EscapeHTMLOutputStream wrapping the given output stream. |
| Modifier and Type | Method and Description |
|---|---|
void | close()Does nothing. |
void | write(int val)Write a single byte, escaping HTML special characters. |
flush, write, writepublic EscapeHTMLOutputStream(OutputStream out)
out - the underlying output streampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreampublic void write(int val)
throws IOExceptionwrite in class FilterOutputStreamval - the byte valueIOException - on I/O error