Class EarthwormEscapeOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class EarthwormEscapeOutputStream
    extends java.io.FilterOutputStream
    • Field Summary

      • Fields inherited from class java.io.FilterOutputStream

        out
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeIfNotNull​(java.io.Closeable out)  
      void endTransmit()  
      void startTransmit()  
      void write​(byte[] b)
      not efficient, but...
      void write​(byte[] b, int offset, int len)
      not efficient, but...
      void write​(int b)  
      void writeThreeChars​(int val)  
      • Methods inherited from class java.io.FilterOutputStream

        close, flush
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EarthwormEscapeOutputStream

        public EarthwormEscapeOutputStream​(java.io.OutputStream out)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        not efficient, but...
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int offset,
                          int len)
                   throws java.io.IOException
        not efficient, but...
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • startTransmit

        public void startTransmit()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • endTransmit

        public void endTransmit()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeThreeChars

        public void writeThreeChars​(int val)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • closeIfNotNull

        public static void closeIfNotNull​(java.io.Closeable out)