Class Overview
An OutputStream that does Base64 encoding on the data written to
 it, writing the resulting data to another OutputStream.
 
Summary
| Public Constructors | 
|---|
	 
    
        |  | Base64OutputStream(OutputStream out, int flags) Performs Base64 encoding on the data written to the stream,
 writing the encoded data to another OutputStream. | 
| Public Methods | 
|---|
	 
    
        | void | close() Closes this stream. | 
	 
    
        | void | write(byte[] b, int off, int len) Writes countbytes from the byte arraybufferstarting atoffsetto the target stream. | 
	 
    
        | void | write(int b) Writes one byte to the target stream. | 
| [Expand] Inherited Methods | 
|---|
|  From class
  java.io.FilterOutputStream 
  
   
    
    
	 
    
        | void | close() Closes this stream. |  
        | void | flush() Ensures that all pending data is sent out to the target stream. |  
        | void | write(byte[] buffer, int offset, int length) Writes countbytes from the byte arraybufferstarting atoffsetto the target stream. |  
        | void | write(int oneByte) Writes one byte to the target stream. |  | 
|  From class
  java.io.OutputStream 
  
   
    
    
	 
    
        | void | close() Closes this stream. |  
        | void | flush() Flushes this stream. |  
        | void | write(byte[] buffer, int offset, int count) Writes countbytes from the byte arraybufferstarting at
 positionoffsetto this stream. |  
        | void | write(byte[] buffer) Equivalent to write(buffer, 0, buffer.length). |  
        | abstract
            
            
            
            
            void | write(int oneByte) Writes a single byte to this stream. |  | 
|  From class
  java.lang.Object 
  
   
    
    
	 
    
        | Object | clone() Creates and returns a copy of this Object. |  
        | boolean | equals(Object o) Compares this instance with the specified object and indicates if they
 are equal. |  
        | void | finalize() Invoked when the garbage collector has detected that this instance is no longer reachable. |  
        | final
            
            
            Class<?> | getClass() Returns the unique instance of  Class that represents this
 object's class. |  
        | int | hashCode() Returns an integer hash code for this object. |  
        | final
            
            
            void | notify() Causes a thread which is waiting on this object's monitor (by means of
 calling one of the wait()methods) to be woken up. |  
        | final
            
            
            void | notifyAll() Causes all threads which are waiting on this object's monitor (by means
 of calling one of the wait()methods) to be woken up. |  
        | String | toString() Returns a string containing a concise, human-readable description of this
 object. |  
        | final
            
            
            void | wait() Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object. |  
        | final
            
            
            void | wait(long millis, int nanos) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  
        | final
            
            
            void | wait(long millis) Causes the calling thread to wait until another thread calls the notify()ornotifyAll()method of this object or until the
 specified timeout expires. |  | 
|  From interface
  java.io.Closeable 
  
   
    
    
	 
    
        | abstract
            
            
            
            
            void | close() Closes the object and release any system resources it holds. |  | 
|  From interface
  java.io.Flushable 
  
   
    
    
	 
    
        | abstract
            
            
            
            
            void | flush() Flushes the object by writing out any buffered data to the underlying
 output. |  | 
|  From interface
  java.lang.AutoCloseable 
  
   
    
    
	 
    
        | abstract
            
            
            
            
            void | close() Closes the object and release any system resources it holds. |  | 
 
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      Base64OutputStream
      (OutputStream out, int flags)
    
      
    
      
  Performs Base64 encoding on the data written to the stream,
 writing the encoded data to another OutputStream.
      Parameters
      
        
          | out | the OutputStream to write the encoded data to | 
        
          | flags | bit flags for controlling the encoder; see the
        constants in Base64 | 
      
   
     
 
Public Methods
 
    
      
        public 
         
         
         
         
        void
      
      close
      ()
    
      
    
      
  Closes this stream. This implementation closes the target stream.
 
 
 
    
      
        public 
         
         
         
         
        void
      
      write
      (byte[] b, int off, int len)
    
      
    
      
  Writes count bytes from the byte array buffer starting at
 offset to the target stream.
      Parameters
      
        
          | b | the buffer to write. | 
        
          | off | the index of the first byte in bufferto write. | 
        
          | len | the number of bytes in bufferto write. | 
      
   
  
     
 
 
    
      
        public 
         
         
         
         
        void
      
      write
      (int b)
    
      
    
      
  Writes one byte to the target stream. Only the low order byte of the
 integer oneByte is written.
      Parameters
      
        
          | b | the byte to be written. |