Class SMTPTransport.BDATOutputStream

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

    private class SMTPTransport.BDATOutputStream
    extends SMTPOutputStream
    An SMTPOutputStream that wraps a ChunkedOutputStream.
    • Field Summary

      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      BDATOutputStream​(java.io.OutputStream out, int size)
      Create a BDATOutputStream that wraps a ChunkedOutputStream of the given size and built on top of the specified underlying output stream.
    • Constructor Detail

      • BDATOutputStream

        public BDATOutputStream​(java.io.OutputStream out,
                                int size)
        Create a BDATOutputStream that wraps a ChunkedOutputStream of the given size and built on top of the specified underlying output stream.
        Parameters:
        out - the underlying output stream
        size - the chunk size
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Close this output stream.
        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 - for I/O errors