Class PaddingOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.aoapps.hodgepodge.io.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.