Package i2p.susi.util
Class EscapeHTMLOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- i2p.susi.util.EscapeHTMLOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class EscapeHTMLOutputStream extends FilterOutputStream
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.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description EscapeHTMLOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Does nothing.void
write(int val)
-
Methods inherited from class java.io.FilterOutputStream
flush, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
EscapeHTMLOutputStream
public EscapeHTMLOutputStream(OutputStream out)
-
-
Method Detail
-
write
public void write(int val) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
close
public void close()
Does nothing. Does not close the underlying stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
-
-