Class Base64OutputStream

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

    public class Base64OutputStream
    extends java.io.FilterOutputStream
    implements Base64Consts
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int bitsUsed  
      (package private) int buf  
      (package private) int charsPrinted  
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64OutputStream​(java.io.OutputStream out)
      Creates a new instance of Base64OutputSream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void write​(int b)  
      private void writeBits()  
      • Methods inherited from class java.io.FilterOutputStream

        flush, write, write
      • 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
    • Field Detail

      • buf

        int buf
      • bitsUsed

        int bitsUsed
      • charsPrinted

        int charsPrinted
    • Constructor Detail

      • Base64OutputStream

        public Base64OutputStream​(java.io.OutputStream out)
        Creates a new instance of Base64OutputSream
    • Method Detail

      • 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.FilterOutputStream
        Throws:
        java.io.IOException
      • write

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

        private void writeBits()
                        throws java.io.IOException
        Throws:
        java.io.IOException