Class TeeOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class TeeOutputStream
    extends OutputStream
    An output stream that acts like a "tee", copying all provided bytes to two output streams. This is used, for example, to accumulate a hash of content even as it is being written.
    Since:
    5.3.5