Class PaddingOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class PaddingOutputStream
    extends FilterOutputStream
    Pads the last block with the necessary number of bytes before closing the stream. If padding is necessary without closing, use finish.