Class Base64.EncoderOutputStream

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

    public static class Base64.EncoderOutputStream
    extends java.io.OutputStream
    An OutputStream, which is writing to the given Base64.Encoder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void write​(byte[] pBuffer, int pOffset, int pLen)  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        flush, nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • oneByte

        private final byte[] oneByte
    • Constructor Detail

      • EncoderOutputStream

        public EncoderOutputStream​(Base64.Encoder pEncoder)
        Creates a new instance, which is creating output using the given Base64.Encoder.
        Parameters:
        pEncoder - The base64 encoder being used.
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] pBuffer,
                          int pOffset,
                          int pLen)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException