Package i2p.susi.util
Class EscapeHTMLWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- i2p.susi.util.EscapeHTMLWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class EscapeHTMLWriter extends FilterWriter
Escape HTML on the fly. Streaming version of DataHelper.escapeHTML(), and we escape '-' too since we stick debugging stuff inside comments, and '--' is disallowed inside comments.- Since:
- 0.9.34
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description EscapeHTMLWriter(Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Does nothing.void
write(char[] cbuf, int off, int len)
void
write(int c)
void
write(String str, int off, int len)
-
Methods inherited from class java.io.FilterWriter
flush
-
-
-
-
Constructor Detail
-
EscapeHTMLWriter
public EscapeHTMLWriter(Writer out)
-
-
Method Detail
-
write
public void write(int c) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
close
public void close()
Does nothing. Does not close the underlying writer.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterWriter
-
-