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

  OutputStream that escapes HTML characters during streaming. Streaming version of DataHelper.escapeHTML(), also escapes '-' for comment safety since '--' is disallowed inside HTML comments.

- - ### Field Summary

    - ### Fields inherited from class java.io.FilterOutputStream

      `out`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `EscapeHTMLOutputStream(OutputStream out)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Does nothing.
    `void` | `write(int val)`

    - ### Methods inherited from class java.io.FilterOutputStream

      `flush, write, write`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EscapeHTMLOutputStream

          public EscapeHTMLOutputStream(OutputStream out)

  - ### Method Detail

    - #### close

          public void close()

      Does nothing. Does not close the underlying stream.
      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Overrides:
        `close` in class `FilterOutputStream`

    - #### write

          public void write(int val)
                     throws IOException

      Overrides:
        `write` in class `FilterOutputStream`
      Throws:
        `IOException`