Class OutputStreamBuilder

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public final class OutputStreamBuilder
    extends OutputStream
    Utility to hide the complexity of choosing which OutputStream implementation to choose.

    Itself masquerades as an OutputStream, but really delegates to a CachedOutputStream or a ByteArrayOutputStream.